]> granicus.if.org Git - gc/commit
Fix deadlock in GC_suspend_thread when thread is finished
authorIvan Maidanski <ivmai@mail.ru>
Tue, 11 Jul 2017 22:10:42 +0000 (01:10 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 12 Jul 2017 08:18:34 +0000 (11:18 +0300)
commita4721b4a21397db07a5381fefe44227424669bd0
tree4e2e96be577641cc45595c33394d901f86bdf896
parent0123ff61619dae4e8056d5527cc953e39554aac6
Fix deadlock in GC_suspend_thread when thread is finished
(fix commits 62097c359e2bcf)

* pthread_stop_world.c [GC_ENABLE_SUSPEND_THREAD] (GC_suspend_thread):
Do not call RAISE_SIGNAL() and sem_wait() if thread has FINISHED flag
set; do not handle ESRCH error result of RAISE_SIGNAL(); add comment.
pthread_stop_world.c