From de7515d6b8aef2312120f3749d2423cb1f8f332f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sun, 11 Jan 2004 21:50:12 +0000 Subject: [PATCH] * alloc.c (allocate_vectorlike): Surround calls to mallopt with BLOCK/UNBLOCK_INPUT. --- src/ChangeLog | 5 +++++ src/alloc.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 27c76179e57..8b6160fb5eb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-01-11 Jan Dj,Ad(Brv + + * alloc.c (allocate_vectorlike): Surround calls to mallopt with + BLOCK/UNBLOCK_INPUT. + 2004-01-08 Jan Dj,Ad(Brv * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are 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) /* 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; -- 2.39.2