changeset 31576:717e7e2ca4fd

Add some comments about DOUG_LEA_MALLOC's use of mmap and allocation of Lisp data.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 13 Sep 2000 09:18:49 +0000
parents 722700be186b
children 486ff96e18b9
files src/alloc.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Tue Sep 12 20:21:39 2000 +0000
+++ b/src/alloc.c	Wed Sep 13 09:18:49 2000 +0000
@@ -1049,7 +1049,9 @@
       size_t size = sizeof *b - sizeof (struct sdata) + needed;
 
 #ifdef DOUG_LEA_MALLOC
-      /* Prevent mmap'ing the chunk (which is potentially very large). */
+      /* Prevent mmap'ing the chunk.  Lisp data may not be mmap'ed
+	 because mapped region contents are not preserved in
+	 a dumped Emacs.  */
       mallopt (M_MMAP_MAX, 0);
 #endif
 
@@ -1838,7 +1840,9 @@
   size_t nbytes;
 
 #ifdef DOUG_LEA_MALLOC
-  /* Prevent mmap'ing the chunk (which is potentially very large).. */
+  /* Prevent mmap'ing the chunk.  Lisp data may not be mmap'ed
+     because mapped region contents are not preserved in
+     a dumped Emacs.  */
   mallopt (M_MMAP_MAX, 0);
 #endif