aboutsummaryrefslogtreecommitdiffstats
path: root/src/search.c
diff options
context:
space:
mode:
authorPaul Eggert2019-04-24 13:35:14 -0700
committerPaul Eggert2019-04-24 13:37:15 -0700
commit4c90369d77d3db1cbd37df7857e4706176fd7ba2 (patch)
tree424f9c8b819feef66314316974290bd7f1edc8fd /src/search.c
parentc5358e831f05cdd110f12a4260e6fb607c66c0b4 (diff)
downloademacs-4c90369d77d3db1cbd37df7857e4706176fd7ba2.tar.gz
emacs-4c90369d77d3db1cbd37df7857e4706176fd7ba2.zip
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.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/search.c b/src/search.c
index 7a6e680685a..dfbae5c9628 100644
--- a/src/search.c
+++ b/src/search.c
@@ -3387,12 +3387,6 @@ syms_of_search (void)
3387 Fput (Qinvalid_regexp, Qerror_message, 3387 Fput (Qinvalid_regexp, Qerror_message,
3388 build_pure_c_string ("Invalid regexp")); 3388 build_pure_c_string ("Invalid regexp"));
3389 3389
3390 last_thing_searched = Qnil;
3391 staticpro (&last_thing_searched);
3392
3393 saved_last_thing_searched = Qnil;
3394 staticpro (&saved_last_thing_searched);
3395
3396 re_match_object = Qnil; 3390 re_match_object = Qnil;
3397 staticpro (&re_match_object); 3391 staticpro (&re_match_object);
3398 3392