Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
improve a comment
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 9 Oct 2012 15:27:59 +0000 (17:27 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 9 Oct 2012 15:28:12 +0000 (17:28 +0200)
src/xbt/mmalloc/mfree.c

index e8242f6..f10f48b 100644 (file)
@@ -134,7 +134,9 @@ void mfree(struct mdesc *mdp, void *ptr)
           mdp -> heapstats.bytes_free -= bytes;
           } */
 
-    /* Set the next search to begin at this block.  */
+    /* Set the next search to begin at this block.  
+       This is probably important to the trick where realloc returns the block to 
+       the system before reasking for the same block with a bigger size.  */
     mdp->heapindex = block;
     break;