]> granicus.if.org Git - gc/commit
Fix pthread_join when thread is registered in thread key destructor
authorIvan Maidanski <ivmai@mail.ru>
Tue, 26 Sep 2017 08:44:44 +0000 (11:44 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 29 Sep 2017 21:05:28 +0000 (00:05 +0300)
commit874f2d11dce397722e36f91588d869d178ce9e7e
tree74c3b13d19b5f17a23282b5484301d4a6ff5be1f
parent481fd6f7d2e93d95472cbbf00722b2e6a5cde34e
Fix pthread_join when thread is registered in thread key destructor

* pthread_support.c (WRAP_FUNC(pthread_join)): Remove assertion that
thread is finished; call GC_delete_gc_thread only if thread is
finished; add comment.
* win32_threads.c [GC_PTHREADS] (GC_pthread_join): Call
GC_delete_gc_thread_no_free and GC_INTERNAL_FREE only if thread is
finished.
pthread_support.c
win32_threads.c