From df626dd11c360c58eddae813ce6a0524d0a53696 Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Tue, 21 May 2024 21:45:37 +0000 Subject: [PATCH] Revert "[msan] Increase kNumStackOriginDescrs constant (#92838)" This reverts commit 57a507930b50c445140feb68bffe1c21af53319e. Reason: buildbot breakage (https://lab.llvm.org/buildbot/#/builders/57/builds/35160) --- compiler-rt/lib/msan/msan.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/compiler-rt/lib/msan/msan.cpp b/compiler-rt/lib/msan/msan.cpp index 7a152910193e07..a2fc27de1901b4 100644 --- a/compiler-rt/lib/msan/msan.cpp +++ b/compiler-rt/lib/msan/msan.cpp @@ -100,11 +100,7 @@ int msan_report_count = 0; // Array of stack origins. // FIXME: make it resizable. -// Although BSS memory doesn't cost anything until used, it is limited to 2GB -// in some configurations (e.g., "relocation R_X86_64_PC32 out of range: -// ... is not in [-2147483648, 2147483647]; references section '.bss'"). -// We use kNumStackOriginDescrs * (sizeof(char*) + sizeof(uptr)) == 64MB. -static const uptr kNumStackOriginDescrs = 4 * 1024 * 1024; +static const uptr kNumStackOriginDescrs = 1024 * 1024; static const char *StackOriginDescr[kNumStackOriginDescrs]; static uptr StackOriginPC[kNumStackOriginDescrs]; static atomic_uint32_t NumStackOriginDescrs;