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
This commit breaks the simgrid-java execution; Revert "Avoid unnecessary loop."
[simgrid.git]
/
src
/
mc
/
mc_memory.c
diff --git
a/src/mc/mc_memory.c
b/src/mc/mc_memory.c
index
71eb7d0
..
1950729
100644
(file)
--- a/
src/mc/mc_memory.c
+++ b/
src/mc/mc_memory.c
@@
-28,7
+28,7
@@
void MC_memory_init()
xbt_assert(std_heap != NULL);
/* Create the second region a page after the first one ends + safety gap */
xbt_assert(std_heap != NULL);
/* Create the second region a page after the first one ends + safety gap */
- raw_heap =
mmalloc_attach
(-1, (char*)(std_heap) + STD_HEAP_SIZE + getpagesize());
+ raw_heap =
xbt_mheap_new
(-1, (char*)(std_heap) + STD_HEAP_SIZE + getpagesize());
xbt_assert(raw_heap != NULL);
}
xbt_assert(raw_heap != NULL);
}
@@
-37,5
+37,5
@@
void MC_memory_init()
void MC_memory_exit(void)
{
if (raw_heap)
void MC_memory_exit(void)
{
if (raw_heap)
-
mmalloc_detach
(raw_heap);
+
xbt_mheap_destroy
(raw_heap);
}
}