diff options
| author | Gerd Moellmann | 2000-09-13 09:19:05 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-13 09:19:05 +0000 |
| commit | f860896845735249a1341dbbb14c7c198731cce3 (patch) | |
| tree | 13d9a69569df3449b810962a66983e95a24a5b1b /src/alloc.c | |
| parent | 670a1031e9cade23f2c1baca1481eadd049b94dd (diff) | |
| download | emacs-f860896845735249a1341dbbb14c7c198731cce3.tar.gz emacs-f860896845735249a1341dbbb14c7c198731cce3.zip | |
Add some comments about DOUG_LEA_MALLOC's use of mmap
and allocation of Lisp data.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 8 |
1 files changed, 6 insertions, 2 deletions
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) | |||
| 1049 | size_t size = sizeof *b - sizeof (struct sdata) + needed; | 1049 | size_t size = sizeof *b - sizeof (struct sdata) + needed; |
| 1050 | 1050 | ||
| 1051 | #ifdef DOUG_LEA_MALLOC | 1051 | #ifdef DOUG_LEA_MALLOC |
| 1052 | /* Prevent mmap'ing the chunk (which is potentially very large). */ | 1052 | /* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed |
| 1053 | because mapped region contents are not preserved in | ||
| 1054 | a dumped Emacs. */ | ||
| 1053 | mallopt (M_MMAP_MAX, 0); | 1055 | mallopt (M_MMAP_MAX, 0); |
| 1054 | #endif | 1056 | #endif |
| 1055 | 1057 | ||
| @@ -1838,7 +1840,9 @@ allocate_vectorlike (len) | |||
| 1838 | size_t nbytes; | 1840 | size_t nbytes; |
| 1839 | 1841 | ||
| 1840 | #ifdef DOUG_LEA_MALLOC | 1842 | #ifdef DOUG_LEA_MALLOC |
| 1841 | /* Prevent mmap'ing the chunk (which is potentially very large).. */ | 1843 | /* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed |
| 1844 | because mapped region contents are not preserved in | ||
| 1845 | a dumped Emacs. */ | ||
| 1842 | mallopt (M_MMAP_MAX, 0); | 1846 | mallopt (M_MMAP_MAX, 0); |
| 1843 | #endif | 1847 | #endif |
| 1844 | 1848 | ||