aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 1835d2a59eb..91fade83609 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2498,7 +2498,9 @@ allocate_vectorlike (len, type)
2498 /* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed 2498 /* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed
2499 because mapped region contents are not preserved in 2499 because mapped region contents are not preserved in
2500 a dumped Emacs. */ 2500 a dumped Emacs. */
2501 BLOCK_INPUT;
2501 mallopt (M_MMAP_MAX, 0); 2502 mallopt (M_MMAP_MAX, 0);
2503 UNBLOCK_INPUT;
2502#endif 2504#endif
2503 2505
2504 nbytes = sizeof *p + (len - 1) * sizeof p->contents[0]; 2506 nbytes = sizeof *p + (len - 1) * sizeof p->contents[0];
@@ -2506,7 +2508,9 @@ allocate_vectorlike (len, type)
2506 2508
2507#ifdef DOUG_LEA_MALLOC 2509#ifdef DOUG_LEA_MALLOC
2508 /* Back to a reasonable maximum of mmap'ed areas. */ 2510 /* Back to a reasonable maximum of mmap'ed areas. */
2511 BLOCK_INPUT;
2509 mallopt (M_MMAP_MAX, MMAP_MAX_AREAS); 2512 mallopt (M_MMAP_MAX, MMAP_MAX_AREAS);
2513 UNBLOCK_INPUT;
2510#endif 2514#endif
2511 2515
2512 consing_since_gc += nbytes; 2516 consing_since_gc += nbytes;