]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix GC threshold typo
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Aug 2019 17:03:41 +0000 (10:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Aug 2019 17:04:01 +0000 (10:04 -0700)
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!eggert@cs.ucla.edu.

src/alloc.c

index 39833f8decb51b0f6dbf9a0f59e50cdabb64d062..c7419e2fa5f2d031641b4d3d2340d17bd7244915 100644 (file)
@@ -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))
        {