]> granicus.if.org Git - gc/commit
Prevent multiple sem_post calls for a thread in suspend_handler
authorIvan Maidanski <ivmai@mail.ru>
Thu, 28 Dec 2017 08:37:57 +0000 (11:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 28 Dec 2017 08:37:57 +0000 (11:37 +0300)
commitff5a875bb4ceeffce412a08403dca84ba0a81840
tree957e622836a30007afdf033e970ccbe874ec6cac
parent62d2d77df3e8da9760f82e327ee95ded94075073
Prevent multiple sem_post calls for a thread in suspend_handler
(fix commit af409e4bd)

Issue #181 (bdwgc).

* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL
&& THREAD_SANITIZER] (GC_suspend_handler_inner): Call pthread_sigmask()
after last_stop_count update (thus preventing duplicate sem_post() call
in case of GC_suspend_handler_inner is re-entered (if GC_retry_signals);
refine comment.
pthread_stop_world.c