X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/669455c3bd567e8e5543934aa2960d48321581de..e6bc6eb53997f4648bf3207348c060e9f50ee282:/src/mc/mc_memory.c diff --git a/src/mc/mc_memory.c b/src/mc/mc_memory.c index 71eb7d0593..1950729fcc 100644 --- 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 */ - 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); } @@ -37,5 +37,5 @@ void MC_memory_init() void MC_memory_exit(void) { if (raw_heap) - mmalloc_detach(raw_heap); + xbt_mheap_destroy(raw_heap); }