projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b10ca0f
)
add MADV_FREE madvise command from linux v4.5
author
Szabolcs Nagy
<nsz@port70.net>
Sat, 19 Mar 2016 12:37:37 +0000
(13:37 +0100)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 19 Mar 2016 15:31:24 +0000
(11:31 -0400)
allows the os to free the marked pages lazily on memory pressure.
expected to increase malloc performance.
new in linux commit
854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9
include/sys/mman.h
patch
|
blob
|
history
diff --git
a/include/sys/mman.h
b/include/sys/mman.h
index 596a03a70ce7ecf7c6e77ed6027975614ef98ed0..8a5149c980b3754e76fdb11dc0aaf720b1a95e63 100644
(file)
--- 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