commit | a64123ce13545ef57a36285cc9d33978e59fc3da | [log] [tgz] |
---|---|---|
author | Jason Evans <jasone@canonware.com> | Thu Nov 17 10:24:51 2016 -0800 |
committer | Jason Evans <jasone@canonware.com> | Thu Nov 17 10:31:57 2016 -0800 |
tree | 7ba28f07b1ffe9622f101f0c9d0d814f05f9bdcd | |
parent | f7ca1c9bc321feffe056f5d154c287f63e324020 [diff] |
Refactor madvise(2) configuration. Add feature tests for the MADV_FREE and MADV_DONTNEED flags to madvise(2), so that MADV_FREE is detected and used for Linux kernel versions 4.5 and newer. Refactor pages_purge() so that on systems which support both flags, MADV_FREE is preferred over MADV_DONTNEED. This resolves #387.