]> git.eshelyaron.com Git - emacs.git/commit
Sync consing_until_gc with gc-cons-threshold
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Sep 2019 20:03:34 +0000 (13:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Sep 2019 20:03:47 +0000 (13:03 -0700)
commit97ffa339b6d67cebcbefbdfaa2880214adab639c
treedcc425367088b475426c1b385f99de83c96ee70b
parentc34dbd80e72204cd0ac65254ff3145dbd916f5c5
Sync consing_until_gc with gc-cons-threshold

Add watchers for gc-cons-threshold and gc-cons-percentage
that update consing_until_gc accordingly.
Suggested by Eli Zaretskii (Bug#37006#52).
* src/alloc.c (consing_threshold, bump_consing_until_gc)
(watch_gc_cons_threshold, watch_gc_cons_percentage):
New functions.
(garbage_collect_1): Use consing_threshold.
(syms_of_alloc): Arrange to watch gc-cons-threshold and
gc-cons-percentage.
src/alloc.c