From: Gerd Moellmann Date: Wed, 13 Sep 2000 09:19:05 +0000 (+0000) Subject: Add some comments about DOUG_LEA_MALLOC's use of mmap X-Git-Tag: emacs-pretest-21.0.90~1640 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f860896845735249a1341dbbb14c7c198731cce3;p=emacs.git Add some comments about DOUG_LEA_MALLOC's use of mmap and allocation of Lisp data. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3f1315cd6e2..09eaa7c0a5c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-09-13 Gerd Moellmann + + * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap + and allocation of Lisp data. + 2000-09-12 Gerd Moellmann * xfaces.c: Remove conditional compilation on SCALABLE_FONTS. diff --git a/src/alloc.c b/src/alloc.c index daadc998cb5..678bdfa4252 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1049,7 +1049,9 @@ allocate_string_data (s, nchars, nbytes) 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 @@ allocate_vectorlike (len) 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