]> 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>
Tue, 3 Oct 2017 08:29:46 +0000 (11:29 +0300)
commitfc15411b34728ccb7307b7e41c49685e40bd8528
tree09cbff9e3c468e385ab9139ce199d1b6b17cbe19
parent6b6aa3c16f089740ae34801825b8f5280839aca7
Fix pthread_join to avoid thread removal on failure (Cygwin, winpthreads)
(Cherry-pick commit c2f6e79 from 'release-7_4' 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