]> granicus.if.org Git - gc/commit
Define static resend_lost_signals(), restart_all() in pthread_stop_world
authorIvan Maidanski <ivmai@mail.ru>
Mon, 2 Apr 2018 06:22:51 +0000 (09:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 2 Apr 2018 06:29:37 +0000 (09:29 +0300)
commitc2e958362144d84473bfdf4e7231fce6dd1dd416
tree499d0208118a805f0329891ce0c2eae1af346bd3
parent5bf02fe0f63a73ea16e53803977fbef08941c170
Define static resend_lost_signals(), restart_all() in pthread_stop_world
(code refactoring)

Issue #181 (bdwgc).

* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL && GC_ASSERTIONS]
(suspend_restart_barrier): Check that the count of GC_suspend_ack_sem
is zero at the end of the function.
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL]
(resend_lost_signals): New static function (the code is moved from
GC_stop_world).
* pthread_stop_world.c [DEBUG_THREADS] (GC_suspend_all): Move the
assignment of GC_stopping_thread and GC_stopping_pid to GC_stop_world.
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL] (GC_stop_world):
Call resend_lost_signals() if GC_retry_signals.
* pthread_stop_world.c [!NACL] (GC_restart_all): New static function
(the code is moved from GC_start_world).
* pthread_stop_world.c [!NACL] (GC_start_world): Declare n_live_threads
local variable; call GC_restart_all.
pthread_stop_world.c