summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/warnings.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-07-20 19:40:03 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-07-20 20:13:46 -0700
commit26de2d42d0460c5b193456950a568cb04a29dc00 (patch)
tree4631c2f8901f2c9fa3cdfc266279c1667103c238 /lisp/emacs-lisp/warnings.el
parentdf5024dbaef5e1f7e39a2a8268523f9fc1af3118 (diff)
downloademacs-26de2d42d0460c5b193456950a568cb04a29dc00.tar.gz
emacs-26de2d42d0460c5b193456950a568cb04a29dc00.tar.bz2
emacs-26de2d42d0460c5b193456950a568cb04a29dc00.zip
Simplify maybe_gc implementation
* src/alloc.c (consing_until_gc): New variable, replacing the combination of consing_since_gc and gc_relative_threshold. All uses changed. (byte_ct): Move decl here from lisp.h. (memory_full_cons_threshold): New an enum constant. (free_cons): Check for integer overflow in statistics calculation. * src/lisp.h (object_ct): Move decl here from alloc.c. (OBJECT_CT_MAX): New macro. (maybe_gc): Simplify accordingly.
Diffstat (limited to 'lisp/emacs-lisp/warnings.el')
0 files changed, 0 insertions, 0 deletions