Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
THROWF won't work in mmalloc: it needs to malloc stuff (I'm sure)
[simgrid.git] / src / xbt / mmalloc / mm_module.c
index 973c1ae..2ba5796 100644 (file)
@@ -184,7 +184,8 @@ xbt_mheap_t xbt_mheap_new(int fd, void *baseaddr)
   if ((mbase = mmorecore(mdp, sizeof(mtemp))) != NULL) {
     memcpy(mbase, mdp, sizeof(mtemp));
   } else {
-    THROWF(system_error,0,"morecore failed to get some memory!");
+    fprintf(stderr, "morecore failed to get some more memory!\n");
+    abort();
   }
 
   /* Add the new heap to the linked list of heaps attached by mmalloc */