• Paul Eggert's avatar
    Simplify thread initialization and GC · 4c90369d
    Paul Eggert authored
    * 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.
    4c90369d