Skip to content

Commit

Permalink
Revert "[msan] Increase kNumStackOriginDescrs constant (#92838)"
Browse files Browse the repository at this point in the history
This reverts commit 57a5079.

Reason: buildbot breakage
(https://lab.llvm.org/buildbot/#/builders/57/builds/35160)
  • Loading branch information
thurstond committed May 21, 2024
1 parent 32c9d5e commit df626dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions compiler-rt/lib/msan/msan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df626dd

Please sign in to comment.