[PATCH] Change base mutex implementations to use STL-provided mutexes

Zachary Turner zturner at google.com
Fri Jun 6 10:54:57 PDT 2014


On Fri, Jun 6, 2014 at 10:46 AM, Reid Kleckner <rnk at google.com> wrote:

> IMO the "debug" mutexes are really an attempt to optimize LLVM in
> single-threaded mode (i.e. when using clang as a compiler).  They only
> maintain 'acquired' so that a single-threaded run of the LLVM test suite
> reveals any deadlocks that might appear in multi-threaded mode.  We should
> do some svn archaeology to see if this mt_only mode is worth maintaining.
>

Definitely not opposed to getting rid of it if it's not useful.  For
example, something like TSAN could be used to detect races instead.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140606/927e21d8/attachment.html>


More information about the llvm-commits mailing list