On 09/19/2013 04:50 AM, Nicholas Nethercote wrote: > This makes me think of > https://bugzilla.mozilla.org/show_bug.cgi?id=662814.
Having grappled with low level event logging in both the above bug and in Valgrind (the -d option), I'd say it's remarkably difficult to construct something which is guaranteed deadlock-free if you want it to be usable in marginal situations, for example when jemalloc is not initialised or is compromised (though heap corruption). In both cases I inclined strongly to making the logger as self-contained as possible, even to the point of either avoiding dynamic memory allocation, or having its own private allocator. Relying on layers of other libraries in such cases tends to be a fast-track to deadlocks and/or segfaults, IME. J _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform