]> granicus.if.org Git - gc/commit
Fix assertion violation in return_single_freelist in child process
authorIvan Maidanski <ivmai@mail.ru>
Mon, 28 Aug 2017 08:26:51 +0000 (11:26 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 28 Sep 2017 08:44:50 +0000 (11:44 +0300)
commitcc6d375c12eb2287c71ee48674416c265706e95c
tree1b1d0b82889e31ed205026e32feeba4bb223623c
parent3d85c61f88c52d901234621c952ac4053a696d7d
Fix assertion violation in return_single_freelist in child process

Issue #171 (bdwgc).

GC_destroy_thread_local cannot be called from a thread other than
the current one.

* pthread_support.c [CAN_HANDLE_FORK && THREAD_LOCAL_ALLOC]
(GC_remove_all_threads_but_me): Do not call GC_destroy_thread_local;
add comment.
* win32_threads.c [CAN_HANDLE_FORK && THREAD_LOCAL_ALLOC]
(GC_remove_all_threads_but_me): Likewise.
* thread_local_alloc.c [THREAD_LOCAL_ALLOC] (GC_destroy_thread_local):
Update comment.
pthread_support.c
thread_local_alloc.c
win32_threads.c