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
[mc] Only enable KSM on snapshots and not on main memory
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
mmorecore.c
diff --git
a/src/xbt/mmalloc/mmorecore.c
b/src/xbt/mmalloc/mmorecore.c
index
19cca39
..
9fbf7a9
100644
(file)
--- a/
src/xbt/mmalloc/mmorecore.c
+++ b/
src/xbt/mmalloc/mmorecore.c
@@
-10,10
+10,6
@@
Contributed by Fred Fish at Cygnus Support. fnf@cygnus.com */
Contributed by Fred Fish at Cygnus Support. fnf@cygnus.com */
-#ifndef MAP_ANONYMOUS
-#define MAP_ANONYMOUS MAP_ANON
-#endif
-
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* Prototypes for lseek */
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* Prototypes for lseek */
#endif
@@
-24,6
+20,10
@@
#include "mmprivate.h"
#include "mmprivate.h"
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
#define PAGE_ALIGN(addr) (void*) (((long)(addr) + xbt_pagesize - 1) & \
~((long)xbt_pagesize - 1))
#define PAGE_ALIGN(addr) (void*) (((long)(addr) + xbt_pagesize - 1) & \
~((long)xbt_pagesize - 1))
@@
-124,10
+124,6
@@
void *mmorecore(struct mdesc *mdp, ssize_t size)
abort();
}
abort();
}
-#ifdef MADV_MERGEABLE
- madvise(mapto, mapbytes, MADV_MERGEABLE);
-#endif
-
if (mdp->top == 0)
mdp->base = mdp->breakval = mapto;
if (mdp->top == 0)
mdp->base = mdp->breakval = mapto;