aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/WhitespaceManager.cpp
diff options
context:
space:
mode:
authorThurston Dang <thurston@google.com>2024-07-11 19:23:56 -0700
committerGitHub <noreply@github.com>2024-07-11 19:23:56 -0700
commitb12e141fb14a8b603984e1d29339e344e0db36ce (patch)
tree224aca48bb1f1a4c90ac408572367bb684a90b58 /clang/lib/Format/WhitespaceManager.cpp
parent90abdf83e273586a43e1270e5f0a11de5cc35383 (diff)
downloadllvm-b12e141fb14a8b603984e1d29339e344e0db36ce.zip
llvm-b12e141fb14a8b603984e1d29339e344e0db36ce.tar.gz
llvm-b12e141fb14a8b603984e1d29339e344e0db36ce.tar.bz2
[memprof] Switch allocator to dynamic base address (#98510)
memprof_rtl.cpp calls InitializeShadowMemory() - which dynamically/"randomly" chooses a base address for the shadow mapping - prior to InitializeAllocator(). If we are unlucky, the shadow memory may be mapped in the same region where the allocator wants to be. This patch fixes the issue by changing the allocator to dynamically choosing a base address, as suggested by Vitaly. For comparison, HWASan already dynamically chooses the base addresses for the shadow mapping and allocator. The "unlucky" failure was observed on a new buildbot: https://lab.llvm.org/buildbot/#/builders/66/builds/1361/steps/17/logs/stdio --------- Co-authored-by: Vitaly Buka <vitalybuka@gmail.com>
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
0 files changed, 0 insertions, 0 deletions