]> 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>
Thu, 28 Sep 2017 08:54:56 +0000 (11:54 +0300)
commitc131127570141b103242df00ed2bd3b601c19380
treeb4c7af3198647507b78fb9f97fcf08daacbbf551
parent43d165d10efb056c80ea26d9edab69cdcdeb8fd7
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