aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-06-01 18:54:56 +0300
committerEli Zaretskii2014-06-01 18:54:56 +0300
commitbe04283a7f74d6a5159a312bacd08fb31beee054 (patch)
tree1c6d7e3186ec77628570b4a78a5e04f24add2969 /src
parenta67aaeb3a97e733628f3b97a71b2297eb958c8ed (diff)
downloademacs-be04283a7f74d6a5159a312bacd08fb31beee054.tar.gz
emacs-be04283a7f74d6a5159a312bacd08fb31beee054.zip
src/w32heap.c (realloc_before_dump): Improve commentary.
Diffstat (limited to 'src')
-rw-r--r--src/w32heap.c6
1 files changed, 6 insertions, 0 deletions
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)
417 malloc_before_dump() and free_before_dump() will take care of 417 malloc_before_dump() and free_before_dump() will take care of
418 reallocation. */ 418 reallocation. */
419 p = malloc_before_dump (size); 419 p = malloc_before_dump (size);
420 /* If SIZE is below MaxBlockSize, malloc_before_dump will try to
421 allocate it in the fixed heap. If that fails, we could have
422 kept the block in its original place, above bc_limit, instead
423 of failing the call as below. But this doesn't seem to be
424 worth the added complexity, as loadup allocates only a very
425 small number of large blocks, and never reallocates them. */
420 if (p) 426 if (p)
421 { 427 {
422 CopyMemory (p, ptr, size); 428 CopyMemory (p, ptr, size);