From 98c5d4f1ae1013405e9f4095fe0c2bd1bf1aa849 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 9 Oct 2012 17:27:59 +0200 Subject: [PATCH] improve a comment --- src/xbt/mmalloc/mfree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xbt/mmalloc/mfree.c b/src/xbt/mmalloc/mfree.c index e8242f67c8..f10f48ba8b 100644 --- a/src/xbt/mmalloc/mfree.c +++ b/src/xbt/mmalloc/mfree.c @@ -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; -- 2.20.1