changeset 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 1bdcd59e6a40
children 68254590be55
files src/ChangeLog src/alloc.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Jan 10 15:18:29 2004 +0000
+++ b/src/ChangeLog	Sun Jan 11 21:50:12 2004 +0000
@@ -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
--- 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;