[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master f4974d6: Don’t increase consing_until_gc when out
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master f4974d6: Don’t increase consing_until_gc when out of memory |
Date: |
Tue, 13 Aug 2019 15:29:18 -0400 (EDT) |
branch: master
commit f4974d6fe6137f436763998be27afafea9866098
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Don’t increase consing_until_gc when out of memory
* 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 14b0a7b..0548a09 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++)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master f4974d6: Don’t increase consing_until_gc when out of memory,
Paul Eggert <=