[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 01:21:57 PDT 2025


================
@@ -53,7 +53,12 @@ ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size,
   // for mapping shadow and zeroing out pages doesn't "just work", so we should
   // probably provide higher-level interface for these operations.
   // For now, just memset on Windows.
-  if (value || SANITIZER_WINDOWS == 1 ||
+  // On AIX, calling ReserveShadowMemoryRange() is not allowed to remap the
+  // memory, so just memset the memory.
+#  if SANITIZER_WINDOWS || SANITIZER_AIX
----------------
vitalybuka wrote:

why not just extend `if (value || SANITIZER_WINDOWS || SANITIZER_AIX ||`

https://github.com/llvm/llvm-project/pull/136874


More information about the llvm-commits mailing list