[compiler-rt] [tsan] Fix running check-ubsan with COMPILER_RT_DEBUG=ON (PR #83890)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 17:51:58 PST 2024


================
@@ -212,8 +212,8 @@ struct InternalDeadlockDetector {
     return initialized > 0;
   }
 };
-
-static THREADLOCAL InternalDeadlockDetector deadlock_detector;
+__attribute__((tls_model("initial-exec"))) static THREADLOCAL
----------------
arichardson wrote:

Sounds good will add one. I'll see if here is the best place or if there is another global declared with this attribute that works better.

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


More information about the llvm-commits mailing list