[PATCH] D40666: [sanitizer] Use MADV_FREE on Darwin/BSD to release pages to the OS
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 12:10:50 PST 2017
krytarowski added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_posix_libcdep.cc:65
+ const int madvise_flag =
+ (SANITIZER_FREEBSD || SANITIZER_MAC) ? MADV_FREE : MADV_DONTNEED;
if (beg_aligned < end_aligned)
----------------
Please include SANITIZER_NETBSD too (and in the description).
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D40666
More information about the llvm-commits
mailing list