Skip to content
Commit eb18bc5d authored by Kuba Mracek's avatar Kuba Mracek
Browse files

[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

llvm-svn: 320659
parent 34ea06b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment