]> granicus.if.org Git - gc/commit
Fix pthread_join to avoid thread removal on failure (Cygwin, winpthreads)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 26 Sep 2017 08:29:54 +0000 (11:29 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 29 Sep 2017 21:05:07 +0000 (00:05 +0300)
commitc2f6e79f27599cc200d6c743850d09aecc44fc0b
treecae99690fac960df8f8403142cb7567e39a708c4
parent29a6490c63b7581ae20361b64c4ad28350a1bbbc
Fix pthread_join to avoid thread removal on failure (Cygwin, winpthreads)
(Cherry-pick commit 29269f1 from 'release-7_6' branch.)

* win32_threads.c [GC_WIN32_PTHREADS] (GC_pthread_join): Do not call
GC_lookup_pthread if pthread_join failed.
* win32_threads.c [GC_PTHREADS] (GC_pthread_join): Do not call
GC_delete_gc_thread_no_free, GC_INTERNAL_FREE if pthread_join failed.
* win32_threads.c [GC_PTHREADS && DEBUG_THREADS] (GC_pthread_join):
Log whether pthread_join succeeded or failed.
win32_threads.c