Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reviewed locking in mmalloc:
[simgrid.git] / src / xbt / mmalloc / attach.c
index 2674bed..b9cf578 100644 (file)
@@ -124,11 +124,10 @@ void *mmalloc_attach(int fd, void *baseaddr)
 
   if ((mbase = mdp->morecore(mdp, sizeof(mtemp))) != NULL) {
     memcpy(mbase, mdp, sizeof(mtemp));
-    //    mdp = (struct mdesc *) mbase;
   } else {
     abort();
-    //    mdp = NULL;
   }
+  mdp = (struct mdesc *) mbase;
 
   {                             /* create the mutex within that heap */
     void *old_heap = mmalloc_get_current_heap();