[PATCH] D40666: [sanitizer] Use MADV_FREE on Darwin/BSD to release pages to the OS

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 13:43:05 PST 2017


kcc added a comment.

Will this even build on Linux? 
I don't see MADV_FREE in /usr/include

Maybe define SANITIZER_MADVISE_DONTNEED in lib/sanitizer_common/sanitizer_platform.h?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D40666





More information about the llvm-commits mailing list