]> granicus.if.org Git - gc/commit
Ensure GC initialized when atfork_prepare is called by client
authorIvan Maidanski <ivmai@mail.ru>
Fri, 23 Jun 2017 06:13:15 +0000 (09:13 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 23 Jun 2017 06:13:15 +0000 (09:13 +0300)
commitdc488239f1b4b3e7c4322736aab4fe4f0139abb4
treefb0a40561193ac03611a2f85aa2eb37e52ed3202
parent25293f67948b4a8647b3d7e482a7ed4c8b3c98e5
Ensure GC initialized when atfork_prepare is called by client

Otherwise, if THREAD_LOCAL_ALLOC, GC_remove_all_threads_but_me would
not find the current thread descriptor in GC_threads.

* pthread_support.c [CAN_HANDLE_FORK] (GC_atfork_prepare): Call GC_init
if not GC_is_initialized.
* win32_threads.c [CAN_HANDLE_FORK] (GC_atfork_prepare): Likewise.
pthread_support.c
win32_threads.c