[clang] [compiler-rt] [llvm] [tsan] Add simulation to TSAN (PR #183200)

Chris Cotter via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 8 22:15:29 PST 2026


================

----------------
ccotter wrote:

I think it would be very difficult to support threads that already exist when a simulation starts. The model I implemented is similar to Relacy's, which assumes the simulation has a global, starting view of the world. Right now, if a simulation attempts to run when other threads start, the `__tsan_simulate` returns -1 immediately and prints to stderr a message. The program otherwise continues (e.g., `__tsan_simulate` itself does not abort).

https://github.com/llvm/llvm-project/pull/183200


More information about the cfe-commits mailing list