[compiler-rt] [scudo] Add ScopedTSD to avoid releasing TSD manually (PR #80061)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 14:11:03 PST 2024


================
@@ -129,31 +126,33 @@ static std::mutex Mutex;
 static std::condition_variable Cv;
 static bool Ready;
 
-template <typename AllocatorT> static void stressCache(AllocatorT *Allocator) {
+// Accessing `TSD->getCache()` requires `TSD::Mutex` and which doesn't have easy
----------------
ChiaHungDuan wrote:

Done

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


More information about the llvm-commits mailing list