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
now that mmalloc doesn't break tesh anymore nor nothing visible, enable the legacy...
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
mm_legacy.c
diff --git
a/src/xbt/mmalloc/mm_legacy.c
b/src/xbt/mmalloc/mm_legacy.c
index
d126d18
..
103d93d
100644
(file)
--- a/
src/xbt/mmalloc/mm_legacy.c
+++ b/
src/xbt/mmalloc/mm_legacy.c
@@
-17,6
+17,7
@@
void mmalloc_set_current_heap(void *new_heap) {
__mmalloc_current_heap=new_heap;
}
__mmalloc_current_heap=new_heap;
}
+#define MMALLOC_WANT_OVERIDE_LEGACY /* comment this when stuff goes horribly bad around memory allocation */
#ifdef MMALLOC_WANT_OVERIDE_LEGACY
void *malloc(size_t n) {
void *ret = mmalloc(__mmalloc_current_heap, n);
#ifdef MMALLOC_WANT_OVERIDE_LEGACY
void *malloc(size_t n) {
void *ret = mmalloc(__mmalloc_current_heap, n);