[compiler-rt] [asan] Implement address sanitizer on AIX: memory mapping (6/6) (PR #136874)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 02:08:34 PDT 2025
================
@@ -91,9 +91,25 @@ void InitializeShadowMemory() {
ReserveShadowMemoryRange(shadow_start, kLowShadowEnd, "low shadow");
// mmap the high shadow.
ReserveShadowMemoryRange(kHighShadowBeg, kHighShadowEnd, "high shadow");
- // protect the gap.
- ProtectGap(kShadowGapBeg, kShadowGapEnd - kShadowGapBeg + 1);
- CHECK_EQ(kShadowGapEnd, kHighShadowBeg - 1);
+# if SANITIZER_AIX == 1 && SANITIZER_WORDSIZE == 64
----------------
vitalybuka wrote:
all this nesting is hard to read
maybe we need a refactoring to make it more generic
https://github.com/llvm/llvm-project/pull/136874
More information about the llvm-commits
mailing list