mirror of
git://git.musl-libc.org/musl
synced 2025-02-02 03:51:41 +00:00
add MADV_FREE madvise command from linux v4.5
allows the os to free the marked pages lazily on memory pressure. expected to increase malloc performance. new in linux commit 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9
This commit is contained in:
parent
b10ca0f560
commit
d578c74e67
@ -62,6 +62,7 @@ extern "C" {
|
|||||||
#define MADV_SEQUENTIAL 2
|
#define MADV_SEQUENTIAL 2
|
||||||
#define MADV_WILLNEED 3
|
#define MADV_WILLNEED 3
|
||||||
#define MADV_DONTNEED 4
|
#define MADV_DONTNEED 4
|
||||||
|
#define MADV_FREE 8
|
||||||
#define MADV_REMOVE 9
|
#define MADV_REMOVE 9
|
||||||
#define MADV_DONTFORK 10
|
#define MADV_DONTFORK 10
|
||||||
#define MADV_DOFORK 11
|
#define MADV_DOFORK 11
|
||||||
|
Loading…
Reference in New Issue
Block a user