From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1039) id A7C15385841D; Wed, 19 Jan 2022 21:21:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7C15385841D MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: H.J. Lu To: gcc-cvs@gcc.gnu.org Subject: [gcc r9-9918] libsanitizer: Cherry-pick LLVM release/13.x commit d96358a28193 X-Act-Checkin: gcc X-Git-Author: H.J. Lu X-Git-Refname: refs/heads/releases/gcc-9 X-Git-Oldrev: 376062fa3920905fe4326a58f036843fa6fa2483 X-Git-Newrev: ffe873471fb59dbe95a31afa089cfcac1a9327d4 Message-Id: <20220119212151.A7C15385841D@sourceware.org> Date: Wed, 19 Jan 2022 21:21:51 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2022 21:21:51 -0000 https://gcc.gnu.org/g:ffe873471fb59dbe95a31afa089cfcac1a9327d4 commit r9-9918-gffe873471fb59dbe95a31afa089cfcac1a9327d4 Author: H.J. Lu Date: Fri Dec 17 11:08:32 2021 -0800 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.cc (kDlsymAllocPoolSize): Set it to 8192 on Linux. (cherry picked from commit 8c0f58cd71ec3afcce5abf10c750ec494e88232b) Diff: --- libsanitizer/asan/asan_malloc_linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsanitizer/asan/asan_malloc_linux.cc b/libsanitizer/asan/asan_malloc_linux.cc index a6e692759ce..ddf898846a8 100644 --- a/libsanitizer/asan/asan_malloc_linux.cc +++ b/libsanitizer/asan/asan_malloc_linux.cc @@ -30,7 +30,7 @@ using namespace __asan; // NOLINT 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) {