From: H.J. Lu Date: Fri, 17 Dec 2021 19:08:32 +0000 (-0800) Subject: libsanitizer: Cherry-pick LLVM release/13.x commit d96358a28193 X-Git-Tag: releases/gcc-10.4.0~463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=666eb85627e961db200dd5db639a1831d81188e1;p=thirdparty%2Fgcc.git libsanitizer: Cherry-pick LLVM release/13.x commit d96358a28193 Cherry-pick from LLVM release/13.x branch: commit d96358a2819399a2abb60ad3b26444ab7b4409cf Author: Michał Górny Date: Mon Dec 13 22:28:26 2021 +0100 [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 PR sanitizer/102911 * asan/asan_malloc_linux.cpp (kDlsymAllocPoolSize): Set it to 8192 on Linux. (cherry picked from commit 8c0f58cd71ec3afcce5abf10c750ec494e88232b) --- diff --git a/libsanitizer/asan/asan_malloc_linux.cpp b/libsanitizer/asan/asan_malloc_linux.cpp index faa8968a5d00..efd0cfc74b16 100644 --- a/libsanitizer/asan/asan_malloc_linux.cpp +++ b/libsanitizer/asan/asan_malloc_linux.cpp @@ -31,7 +31,7 @@ using namespace __asan; static uptr allocated_for_dlsym; static uptr last_dlsym_alloc_size_in_words; -static const uptr kDlsymAllocPoolSize = SANITIZER_RTEMS ? 4096 : 1024; +static const uptr kDlsymAllocPoolSize = SANITIZER_RTEMS ? 4096 : 8192; static uptr alloc_memory_for_dlsym[kDlsymAllocPoolSize]; static INLINE bool IsInDlsymAllocPool(const void *ptr) {