Skip to content

Commit df626dd

Browse files
committed
Revert "[msan] Increase kNumStackOriginDescrs constant (#92838)"
This reverts commit 57a5079. Reason: buildbot breakage (https://lab.llvm.org/buildbot/#/builders/57/builds/35160)
1 parent 32c9d5e commit df626dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler-rt/lib/msan/msan.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,7 @@ int msan_report_count = 0;
100100

101101
// Array of stack origins.
102102
// FIXME: make it resizable.
103-
// Although BSS memory doesn't cost anything until used, it is limited to 2GB
104-
// in some configurations (e.g., "relocation R_X86_64_PC32 out of range:
105-
// ... is not in [-2147483648, 2147483647]; references section '.bss'").
106-
// We use kNumStackOriginDescrs * (sizeof(char*) + sizeof(uptr)) == 64MB.
107-
static const uptr kNumStackOriginDescrs = 4 * 1024 * 1024;
103+
static const uptr kNumStackOriginDescrs = 1024 * 1024;
108104
static const char *StackOriginDescr[kNumStackOriginDescrs];
109105
static uptr StackOriginPC[kNumStackOriginDescrs];
110106
static atomic_uint32_t NumStackOriginDescrs;

0 commit comments

Comments
 (0)