[compiler-rt] 35fb4b9 - [lsan] Bump the thread limit from 1<<13 to 1<<22

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 20:16:02 PDT 2021


Author: Fangrui Song
Date: 2021-06-04T20:15:56-07:00
New Revision: 35fb4b9a7c133def9cc3ff0b26b1fe17e348b843

URL: https://github.com/llvm/llvm-project/commit/35fb4b9a7c133def9cc3ff0b26b1fe17e348b843
DIFF: https://github.com/llvm/llvm-project/commit/35fb4b9a7c133def9cc3ff0b26b1fe17e348b843.diff

LOG: [lsan] Bump the thread limit from 1<<13 to 1<<22

This matches asan. Some applications need more than 1<<13 threads.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D103731

Added: 
    

Modified: 
    compiler-rt/lib/lsan/lsan_thread.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/lsan/lsan_thread.cpp b/compiler-rt/lib/lsan/lsan_thread.cpp
index 8efb54a6fb77..9003620dd8fb 100644
--- a/compiler-rt/lib/lsan/lsan_thread.cpp
+++ b/compiler-rt/lib/lsan/lsan_thread.cpp
@@ -30,7 +30,7 @@ static ThreadContextBase *CreateThreadContext(u32 tid) {
   return new (mem) ThreadContext(tid);
 }
 
-static const uptr kMaxThreads = 1 << 13;
+static const uptr kMaxThreads = 1 << 22;  // 4M
 static const uptr kThreadQuarantineSize = 64;
 
 void InitializeThreadRegistry() {


        


More information about the llvm-commits mailing list