[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
This commit is contained in:
Fangrui Song 2021-06-04 20:15:56 -07:00
parent 9ff982dbbd
commit 35fb4b9a7c
1 changed files with 1 additions and 1 deletions

View File

@ -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() {