diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-12-13 22:28:26 +0100 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2021-12-17 10:28:30 -0800 |
commit | d96358a2819399a2abb60ad3b26444ab7b4409cf (patch) | |
tree | 5abde373f8fd7e9db796baf29a84cf2059f1038c | |
parent | c446ac46746edcffab57d22c42c249a3954698c9 (diff) | |
download | llvm-d96358a2819399a2abb60ad3b26444ab7b4409cf.tar.gz |
[compiler-rt] Increase kDlsymAllocPoolSize to fix test failures
Increase kDlsymAllocPoolSize on the release branch as discussed on bug
51620, as an alternative to backporting
cb0e14ce6dcdd614a7207f4ce6fcf81a164471ab and its dependencies.
The minimum size is 8192, as needed for the following test to pass:
AddressSanitizer-i386-linux :: TestCases/Linux/long-object-path.cpp
Fixes #51620
-rw-r--r-- | compiler-rt/lib/asan/asan_malloc_linux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_malloc_linux.cpp b/compiler-rt/lib/asan/asan_malloc_linux.cpp index c6bec8551bc5..3a7d8cfacd0f 100644 --- a/compiler-rt/lib/asan/asan_malloc_linux.cpp +++ b/compiler-rt/lib/asan/asan_malloc_linux.cpp @@ -30,7 +30,7 @@ using namespace __asan; static uptr allocated_for_dlsym; static uptr last_dlsym_alloc_size_in_words; -static const uptr kDlsymAllocPoolSize = 1024; +static const uptr kDlsymAllocPoolSize = 8192; static uptr alloc_memory_for_dlsym[kDlsymAllocPoolSize]; static inline bool IsInDlsymAllocPool(const void *ptr) { |