• Paul Eggert's avatar
    Fix bug when gc-cons-percentage is bumped to 0.8 · b6b7c7fc
    Paul Eggert authored
    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.
    b6b7c7fc
alloc.c 206 KB