summaryrefslogtreecommitdiff
path: root/lib/asan/asan_allocator.cc
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-12-14 00:04:30 +0000
committerKuba Mracek <mracek@apple.com>2017-12-14 00:04:30 +0000
commitf097a8484d5a2c0732108351440984b93fdaa13d (patch)
tree585938fa9ff6992cdab723e0a88336dcbd7e51f3 /lib/asan/asan_allocator.cc
parent589f4670016442ce76b8e8ff65c2ab690cb6d511 (diff)
[sanitizer] Use MADV_FREE on Darwin/BSD to release pages to the OS
MADV_DONTNEED on Linux actually mark the pages as free to be overwritten with zeroes, but on Darwin and BSD, it's just an advisory flag (the OS cannot discard the content). We should use MADV_FREE on Darwin and BSD. Differential Revision: https://reviews.llvm.org/D40666 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_allocator.cc')
0 files changed, 0 insertions, 0 deletions