From: Eli Zaretskii Date: Sun, 1 Jun 2014 15:54:56 +0000 (+0300) Subject: src/w32heap.c (realloc_before_dump): Improve commentary. X-Git-Tag: emacs-25.0.90~2612^2~709^2~826 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=be04283a7f74d6a5159a312bacd08fb31beee054;p=emacs.git src/w32heap.c (realloc_before_dump): Improve commentary. --- 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);