Commit f8608968 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

Add some comments about DOUG_LEA_MALLOC's use of mmap

and allocation of Lisp data.
parent 670a1031
2000-09-13 Gerd Moellmann <gerd@gnu.org>
* alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
and allocation of Lisp data.
2000-09-12 Gerd Moellmann <gerd@gnu.org> 2000-09-12 Gerd Moellmann <gerd@gnu.org>
* xfaces.c: Remove conditional compilation on SCALABLE_FONTS. * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
......
...@@ -1049,7 +1049,9 @@ allocate_string_data (s, nchars, nbytes) ...@@ -1049,7 +1049,9 @@ allocate_string_data (s, nchars, nbytes)
size_t size = sizeof *b - sizeof (struct sdata) + needed; size_t size = sizeof *b - sizeof (struct sdata) + needed;
#ifdef DOUG_LEA_MALLOC #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); mallopt (M_MMAP_MAX, 0);
#endif #endif
...@@ -1838,7 +1840,9 @@ allocate_vectorlike (len) ...@@ -1838,7 +1840,9 @@ allocate_vectorlike (len)
size_t nbytes; size_t nbytes;
#ifdef DOUG_LEA_MALLOC #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); mallopt (M_MMAP_MAX, 0);
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment