From f860896845735249a1341dbbb14c7c198731cce3 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 13 Sep 2000 09:19:05 +0000 Subject: [PATCH] Add some comments about DOUG_LEA_MALLOC's use of mmap and allocation of Lisp data. --- src/ChangeLog | 5 +++++ src/alloc.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) 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 -- 2.39.2