[llvm-branch-commits] [compiler-rt] d96358a - [compiler-rt] Increase kDlsymAllocPoolSize to fix test failures

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 17 10:28:59 PST 2021


Author: Michał Górny
Date: 2021-12-17T10:28:30-08:00
New Revision: d96358a2819399a2abb60ad3b26444ab7b4409cf

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

LOG: [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

Added: 
    

Modified: 
    compiler-rt/lib/asan/asan_malloc_linux.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/asan/asan_malloc_linux.cpp b/compiler-rt/lib/asan/asan_malloc_linux.cpp
index c6bec8551bc5a..3a7d8cfacd0f6 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) {


        


More information about the llvm-branch-commits mailing list