]> git.eshelyaron.com Git - emacs.git/commit
Simplify thread initialization and GC
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Apr 2019 20:35:14 +0000 (13:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Apr 2019 20:37:15 +0000 (13:37 -0700)
commit4c90369d77d3db1cbd37df7857e4706176fd7ba2
tree424f9c8b819feef66314316974290bd7f1edc8fd
parentc5358e831f05cdd110f12a4260e6fb607c66c0b4
Simplify thread initialization and GC

* src/lisp.h (PVECHEADERSIZE): New macro.
(XSETPVECTYPESIZE): Use it.
* src/search.c (syms_of_search): No need to initialize or
staticpro last_thing_searched or saved_last_thing_searched, as
the thread code arranges for initialization and GC.
* src/thread.c (main_thread): Initialize statically.
(Fmake_mutex, Fmake_condition_variable, Fmake_thread):
Use ALLOCATE_ZEROED_PSEUDOVECTOR rather than zeroing by hand.
(mark_one_thread): No need to mark Lisp_Object members.
(init_main_thread, init_threads_once): Remove.  All uses removed.
src/emacs.c
src/lisp.h
src/search.c
src/thread.c
src/thread.h