]> git.eshelyaron.com Git - emacs.git/commit
Fix bug when gc-cons-percentage is bumped to 0.8
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 8 Sep 2019 01:08:12 +0000 (18:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 8 Sep 2019 01:08:44 +0000 (18:08 -0700)
commitb6b7c7fc985eaadef2f059fac4442d23a3b706de
tree6656c932098f554e9791abbea18b6c457ac665f8
parent8e93e6da7cda4de82e3532cf74fc585451641398
Fix bug when gc-cons-percentage is bumped to 0.8

Problem reported by Michael Heerdegen (Bug#37321).
* src/alloc.c (gc_threshold): New static var.
(bump_consing_until_gc): Change args from DIFF to THRESHOLD and
PERCENTAGE.  All uses changed.  When accounting for a changed
gc-cons-percentage, do not assume that total_bytes_of_live_objects
returns the same value now that it did the last time we were
called.
src/alloc.c