From 6e0fca1d845a2829de2cac7b7b6fc244c15898a9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 22 Oct 1998 01:53:38 +0000 Subject: [PATCH] (Fgarbage_collect): Block input around most of the function. --- src/alloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/alloc.c b/src/alloc.c index 0030de4842c..029f205ea32 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1730,6 +1730,8 @@ Garbage collection happens automatically if you cons more than\n\ if (garbage_collection_messages) message1_nolog ("Garbage collecting..."); + BLOCK_INPUT; + shrink_regexp_cache (); /* Don't keep undo information around forever. */ @@ -1873,6 +1875,8 @@ Garbage collection happens automatically if you cons more than\n\ XUNMARK (buffer_defaults.name); XUNMARK (buffer_local_symbols.name); + UNBLOCK_INPUT; + /* clear_marks (); */ gc_in_progress = 0; -- 2.39.2