]> 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>
Tue, 26 Sep 2017 08:44:44 +0000 (11:44 +0300)
commit2057b115b5bfe9cac063c93ace3e8d60793ae560
treeb444eb0a7125a966ab1a50b25fc461f59feabbad
parent11329f77d82f1a0e32b6c16128854302ca0dd417
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