emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r117213: src/w32heap.c (realloc_before_dump): Improv


From: Eli Zaretskii
Subject: [Emacs-diffs] trunk r117213: src/w32heap.c (realloc_before_dump): Improve commentary.
Date: Sun, 01 Jun 2014 15:55:11 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117213
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sun 2014-06-01 18:54:56 +0300
message:
  src/w32heap.c (realloc_before_dump): Improve commentary.
modified:
  src/w32heap.c                  w32heap.c-20091113204419-o5vbwnq5f7feedwu-810
=== modified file 'src/w32heap.c'
--- a/src/w32heap.c     2014-05-30 09:02:55 +0000
+++ b/src/w32heap.c     2014-06-01 15:54:56 +0000
@@ -417,6 +417,12 @@
          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);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]