[Lldb-commits] [lldb] r236892 - Enable thread-safe logging.
Ed Maste
emaste at freebsd.org
Mon May 11 10:19:04 PDT 2015
> On Mon, May 11, 2015 at 8:40 AM Pavel Labath <labath at google.com> wrote:
>> I think the reason is that when you are debugging a race condition,
>> the added synchronization resulting from logging can make the problem
>> go away as soon as you start investigating it, which can be quite
>> annoying.
That is indeed annoying, but I'm not sure that it's worse than the
alternative. You are either unable to reproduce the problem, or unable
to trust the log.
On 11 May 2015 at 11:51, Zachary Turner <zturner at google.com> wrote:
> If the reason is to avoid those race conditions, perhaps the default value
> should be threadsafe, and the option should disable thread safety.
I still think we should just eliminate the unsafe path, but this would
at least be much better than today.
More information about the lldb-commits
mailing list