From be04283a7f74d6a5159a312bacd08fb31beee054 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 1 Jun 2014 18:54:56 +0300 Subject: [PATCH] src/w32heap.c (realloc_before_dump): Improve commentary. --- src/w32heap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/w32heap.c b/src/w32heap.c index cc08dc37219..523df909165 100644 --- a/src/w32heap.c +++ b/src/w32heap.c @@ -417,6 +417,12 @@ realloc_before_dump (void *ptr, size_t size) malloc_before_dump() and free_before_dump() will take care of reallocation. */ p = malloc_before_dump (size); + /* If SIZE is below MaxBlockSize, malloc_before_dump will try to + allocate it in the fixed heap. If that fails, we could have + kept the block in its original place, above bc_limit, instead + of failing the call as below. But this doesn't seem to be + worth the added complexity, as loadup allocates only a very + small number of large blocks, and never reallocates them. */ if (p) { CopyMemory (p, ptr, size); -- 2.39.2