Fix GC_suspend_thread for terminated threads
authorIvan Maidanski <ivmai@mail.ru>
Tue, 21 Jun 2016 06:48:21 +0000 (09:48 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 21 Jun 2016 06:48:21 +0000 (09:48 +0300)
commitc651715cd32958d6c6efe3800eb15f6667d4784f
treeab77bb5f72de4124ac4dc94777b3cd16f981913b
parent59e2bcf96430d5ae4e307ac5d8323bf4ea679e47
Fix GC_suspend_thread for terminated threads

* pthread_stop_world.c (GC_suspend_thread): Do not clear
SUSPENDED_EXT flag in case of RAISE_SIGNAL() failure, add assertion
about FINISHED (in case of ESRCH), update comment.
* pthread_stop_world.c (GC_register_my_thread): Add assertion
that SUSPENDED_EXT flag is not set if the thread is registered from
a thread key destructor.
pthread_stop_world.c
pthread_support.c