summaryrefslogtreecommitdiff
path: root/include/sys/mman.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2016-03-19 13:37:37 +0100
committerRich Felker <dalias@aerifal.cx>2016-03-19 11:31:24 -0400
commitd578c74e677c9c29bfa0b5eec1f21506b9c05558 (patch)
treea0ab2b66694ce28c78530b9ae9ef0646ce6f48b1 /include/sys/mman.h
parentb10ca0f560491ed9e353ead6e35f8992e9800c7a (diff)
downloadmusl-d578c74e677c9c29bfa0b5eec1f21506b9c05558.tar.gz
musl-d578c74e677c9c29bfa0b5eec1f21506b9c05558.tar.bz2
musl-d578c74e677c9c29bfa0b5eec1f21506b9c05558.tar.xz
musl-d578c74e677c9c29bfa0b5eec1f21506b9c05558.zip
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
Diffstat (limited to 'include/sys/mman.h')
-rw-r--r--include/sys/mman.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 596a03a7..8a5149c9 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -62,6 +62,7 @@ extern "C" {
#define MADV_SEQUENTIAL 2
#define MADV_WILLNEED 3
#define MADV_DONTNEED 4
+#define MADV_FREE 8
#define MADV_REMOVE 9
#define MADV_DONTFORK 10
#define MADV_DOFORK 11