[compiler-rt] [llvm] [tsan] Introduce Adaptive Delay Scheduling to TSAN (PR #178836)

Chris Cotter via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 13 13:48:49 PST 2026


================
@@ -1324,6 +1332,7 @@ int cond_wait(ThreadState *thr, uptr pc, ScopedInterceptor *si, const Fn &fn,
 INTERCEPTOR(int, pthread_cond_wait, void *c, void *m) {
   void *cond = init_cond(c);
   SCOPED_TSAN_INTERCEPTOR(pthread_cond_wait, cond, m);
+  GetFuzzingScheduler().MutexCvOp();
----------------
ccotter wrote:

I was similarly thinking of buggy code that may not be using a mutex properly on the signaling side: https://github.com/llvm/llvm-project/pull/178836#discussion_r2805980700

Again, this may not be useful. Lmk your thoughts; I'll leave these delays here for the time being.

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


More information about the llvm-commits mailing list