[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 12:40:05 PST 2026
================
@@ -1446,6 +1464,7 @@ TSAN_INTERCEPTOR(int, pthread_mutex_trylock, void *m) {
#if !SANITIZER_APPLE
TSAN_INTERCEPTOR(int, pthread_mutex_timedlock, void *m, void *abstime) {
SCOPED_TSAN_INTERCEPTOR(pthread_mutex_timedlock, m, abstime);
+ GetFuzzingScheduler().MutexCvOp();
int res = REAL(pthread_mutex_timedlock)(m, abstime);
----------------
ccotter wrote:
Just so I understand, do you mean for the pthread_* APIs like pthread_mutex_timedlock, pthread_cond_wait_timedwait etc that are time based, to have more specific delay behavior (currently, the new flags support customizing delay behavior for 1) relaxed atomics, 2) stronger than relaxed atomics, 3) all mutex/cv ops). Or something else?
https://github.com/llvm/llvm-project/pull/178836
More information about the llvm-commits
mailing list