>From f4974d6fe6137f436763998be27afafea9866098 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 13 Aug 2019 12:28:53 -0700 Subject: [PATCH 3/3] =?UTF-8?q?Don=E2=80=99t=20increase=20consing=5Funtil?= =?UTF-8?q?=5Fgc=20when=20out=20of=20memory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * src/alloc.c (memory_full): Don’t increase consing_until_gc. Suggested by Eli Zaretskii (Bug#37006#46). --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index 14b0a7b838..0548a09cb8 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -3866,7 +3866,7 @@ memory_full (size_t nbytes) if (! enough_free_memory) { Vmemory_full = Qt; - consing_until_gc = memory_full_cons_threshold; + consing_until_gc = min (consing_until_gc, memory_full_cons_threshold); /* The first time we get here, free the spare memory. */ for (int i = 0; i < ARRAYELTS (spare_memory); i++) -- 2.17.1