]> git.eshelyaron.com Git - emacs.git/commit
Streamline live_*_holding
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Jun 2020 01:46:11 +0000 (18:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Jun 2020 05:08:43 +0000 (22:08 -0700)
commit8ee367fe864d131a9d7f87677b9418ac78c922fa
tree2d2ed797873e5e68f50bd824be66d9d25a3f51ea
parent4dcf8f2205fcfb45b460a2256569e64a03f93b4a
Streamline live_*_holding

(live_string_holding, live_cons_holding, live_symbol_holding)
(live_float_p, live_vector_holding):
Assert that m->type is correct, instead of testing this at
runtime.  All callers changed.
(live_large_vector_holding, live_small_vector_holding):
Now two functions instead of the old live_vector_holding.
All callers changed.
(live_large_vector_p, live_small_vector_p):
Now two functions instead of the old live_vector_p.
All callers changed.
(mark_maybe_object): Ignore Lisp_Type_Unused0 quickly too,
since that cannot possibly be an object.
(CHECK_LIVE, CHECK_ALLOCATED_AND_LIVE):
New arg MEM_TYPE.  All callers changed.
(CHECK_ALLOCATED_AND_LIVE_SYMBOL): Simplify by combining
GC_CHECK_MARKED_OBJECTS code.
src/alloc.c