diff options
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 | ||