diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sanitizer_common/sanitizer_posix_libcdep.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_posix_libcdep.cc b/lib/sanitizer_common/sanitizer_posix_libcdep.cc index 6acda66f0..eaf157881 100644 --- a/lib/sanitizer_common/sanitizer_posix_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_posix_libcdep.cc @@ -78,8 +78,10 @@ bool NoHugePagesInRegion(uptr addr, uptr size) { } bool DontDumpShadowMemory(uptr addr, uptr length) { -#ifdef MADV_DONTDUMP +#if defined(MADV_DONTDUMP) return madvise((void *)addr, length, MADV_DONTDUMP) == 0; +#elif defined(MADV_NOCORE) + return madvise((void *)addr, length, MADV_NOCORE) == 0; #else return true; #endif // MADV_DONTDUMP |