|author||Jason Evans <email@example.com>||Thu Nov 17 10:24:51 2016 -0800|
|committer||Jason Evans <firstname.lastname@example.org>||Thu Nov 17 10:31:57 2016 -0800|
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.