* alloc.c (allocate_vectorlike): Surround calls to mallopt with

BLOCK/UNBLOCK_INPUT.
This commit is contained in:
Jan Djärv 2004-01-11 21:50:12 +00:00
parent 12b795e1a4
commit de7515d6b8
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-01-11 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* alloc.c (allocate_vectorlike): Surround calls to mallopt with
BLOCK/UNBLOCK_INPUT.
2004-01-08 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are

View file

@ -2498,7 +2498,9 @@ allocate_vectorlike (len, type)
/* 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 @@ allocate_vectorlike (len, type)
#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;