]> git.eshelyaron.com Git - emacs.git/commit
Fix bugs when recalculating consing_until_gc
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Sep 2019 20:25:43 +0000 (13:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Sep 2019 20:27:07 +0000 (13:27 -0700)
commit16ab25f136c4eef27743dfa50953692d115f162c
treed38ff1b08714acdad771bbd2e92777370e9db2e6
parentb9e37f551add188f82f2583d3eb13cb81e707387
Fix bugs when recalculating consing_until_gc

Problem reported by Joseph Mingrone (Bug#37006#72).
* src/alloc.c (watch_gc_cons_threshold)
(watch_gc_cons_percentage):
Don’t try to store an intmax_t into an int.
Redo to make the code clearer.
(watch_gc_cons_percentage):
Use gc_cons_threshold, not consing_until_gc.
src/alloc.c