[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 8882761: Fix GC threshold typo
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 8882761: Fix GC threshold typo |
Date: |
Tue, 13 Aug 2019 13:04:06 -0400 (EDT) |
branch: master
commit 8882761440c3227850043dddf5aec5394c8cbe28
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Fix GC threshold typo
Problem reported by Eli Zaretskii (Bug#37006#25).
* src/alloc.c (garbage_collect_1): Fix typo in threshold calc.
Go back to dividing by 10 since the numerator’s a constant now.
Problem introduced in 2019-07-21T02:40:03Z!address@hidden.
---
src/alloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/alloc.c b/src/alloc.c
index 39833f8..c7419e2 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -5932,8 +5932,8 @@ garbage_collect_1 (struct gcstat *gcst)
consing_until_gc = memory_full_cons_threshold;
else
{
- intptr_t threshold = min (max (GC_DEFAULT_THRESHOLD,
- gc_cons_threshold >> 3),
+ intptr_t threshold = min (max (GC_DEFAULT_THRESHOLD / 10,
+ gc_cons_threshold),
OBJECT_CT_MAX);
if (FLOATP (Vgc_cons_percentage))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 8882761: Fix GC threshold typo,
Paul Eggert <=