Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
improve the doc to reflect recent changes (and we already have the actual size of...
[simgrid.git] / src / xbt / mmalloc / mrealloc.c
index ea4d7f6..5928d13 100644 (file)
@@ -26,6 +26,7 @@ void *mrealloc(xbt_mheap_t mdp, void *ptr, size_t size)
   int type;
   size_t block, blocks, oldlimit;
 
+  /* Only keep real realloc and hidden malloc and free to the relevant functions */
   if (size == 0) {
     mfree(mdp, ptr);
     return mmalloc(mdp, 0);
@@ -33,7 +34,6 @@ void *mrealloc(xbt_mheap_t mdp, void *ptr, size_t size)
     return mmalloc(mdp, size);
   }
 
-
   //printf("(%s)realloc %p to %d...",xbt_thread_self_name(),ptr,(int)size);
 
   if ((char *) ptr < (char *) mdp->heapbase || BLOCK(ptr) > mdp->heapsize) {