[compiler-rt] [scudo] Lock/unlock MutexTSDs in disable/enable. (PR #169440)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 21:29:04 PST 2025


================
@@ -93,13 +93,15 @@ struct TSDRegistrySharedT {
 
   void disable() NO_THREAD_SAFETY_ANALYSIS {
     Mutex.lock();
+    MutexTSDs.lock();
----------------
ChiaHungDuan wrote:

Can we also add ACQUIRED_BEFORE(MutexTSDs) on Mutex? Even though there's no thread safety analysis for enable()/disable() but I guess in init() this can be useful.

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


More information about the llvm-commits mailing list