X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0418749f36845207a1fb714c471fbee35454bfb9..d3794e5a4de776ee8051b047f9a3da5652457038:/src/mc/mc_memory.c diff --git a/src/mc/mc_memory.c b/src/mc/mc_memory.c index 6d9700ebc7..bc0617af8d 100644 --- a/src/mc/mc_memory.c +++ b/src/mc/mc_memory.c @@ -26,8 +26,9 @@ xbt_mheap_t mc_heap = NULL; /* memory persistent over the MC rollbacks /* It creates the two heap regions: std_heap and mc_heap */ void MC_memory_init() { - mmalloc_ensure_using_mm( - xbt_dynar_length(xbt_cmdline), xbt_dynar_get_ptr(xbt_cmdline, 0)); + if (!malloc_use_mmalloc()) { + xbt_die("Model-checking support is not enabled: run with simgrid-mc."); + } /* Create the first region HEAP_OFFSET bytes after the heap break address */ std_heap = mmalloc_get_default_md();