Mercurial > emacs
diff src/alloc.c @ 53555:72ce38380ab3
* alloc.c (allocate_vectorlike): Surround calls to mallopt with
BLOCK/UNBLOCK_INPUT.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Sun, 11 Jan 2004 21:50:12 +0000 |
parents | e8f5463f3d5b |
children | b4eef5adebbf ae6d0d2ecb1d |
line wrap: on
line diff
--- a/src/alloc.c Sat Jan 10 15:18:29 2004 +0000 +++ b/src/alloc.c Sun Jan 11 21:50:12 2004 +0000 @@ -2498,7 +2498,9 @@ /* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed because mapped region contents are not preserved in a dumped Emacs. */ + BLOCK_INPUT; mallopt (M_MMAP_MAX, 0); + UNBLOCK_INPUT; #endif nbytes = sizeof *p + (len - 1) * sizeof p->contents[0]; @@ -2506,7 +2508,9 @@ #ifdef DOUG_LEA_MALLOC /* Back to a reasonable maximum of mmap'ed areas. */ + BLOCK_INPUT; mallopt (M_MMAP_MAX, MMAP_MAX_AREAS); + UNBLOCK_INPUT; #endif consing_since_gc += nbytes;