[clang] [compiler-rt] [tsan] Add simulation to TSAN (PR #183200)
Chris Cotter via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 15 07:31:33 PDT 2026
================
----------------
ccotter wrote:
I've updated the annotations to note simulation is not (currently) supported. Locking a pthread mutex in simulation mode needs direct access to the mutex to detect when the mutex is already held by someone else, and putting that thread to sleep in the SimScheduler, instead of blocking on the mutex (and thus deadlocking, since no other thread would be given a chance to run).
https://github.com/llvm/llvm-project/pull/183200
More information about the cfe-commits
mailing list