Skip to content

Commit d96358a

Browse files
mgornytstellar
authored andcommitted
[compiler-rt] Increase kDlsymAllocPoolSize to fix test failures
Increase kDlsymAllocPoolSize on the release branch as discussed on bug 51620, as an alternative to backporting cb0e14c 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
1 parent c446ac4 commit d96358a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/asan/asan_malloc_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using namespace __asan;
3030

3131
static uptr allocated_for_dlsym;
3232
static uptr last_dlsym_alloc_size_in_words;
33-
static const uptr kDlsymAllocPoolSize = 1024;
33+
static const uptr kDlsymAllocPoolSize = 8192;
3434
static uptr alloc_memory_for_dlsym[kDlsymAllocPoolSize];
3535

3636
static inline bool IsInDlsymAllocPool(const void *ptr) {

0 commit comments

Comments
 (0)