[PATCH] [ASan] Make BlockingMutex really linker initialized.
tetra2005 at gmail.com
Fri Jan 30 02:59:24 PST 2015
> I'll submit a pthread_self patch shortly.
Ok, it turned out to be more interesting than I expected. We clone a lock-owning thread in StopTheWorld and then call CheckLocked in the clone (assuming that it "inherited" the lock). This obviously fails because owner_ field does not match. So looks like the whole idea of owner_ conflicts with our lock-passing semantics. I wonder if it's better to remove it altogether (at least on Linux and Mac, Windows uses it for some other purpose).
More information about the llvm-commits