A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "Remove XBT_INFO call"
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
mmorecore.c
diff --git
a/src/xbt/mmalloc/mmorecore.c
b/src/xbt/mmalloc/mmorecore.c
index
2182cc4
..
74ed341
100644
(file)
--- a/
src/xbt/mmalloc/mmorecore.c
+++ b/
src/xbt/mmalloc/mmorecore.c
@@
-19,6
+19,7
@@
#include <stdio.h>
#include <fcntl.h>
#include <sys/mman.h>
+#include <sys/wait.h>
#include "mmprivate.h"
@@
-122,6
+123,10
@@
void *mmorecore(struct mdesc *mdp, ssize_t size)
abort();
}
+#ifdef MADV_MERGEABLE
+ madvise(mapto, mapbytes, MADV_MERGEABLE);
+#endif
+
if (mdp->top == 0)
mdp->base = mdp->breakval = mapto;