Workaround TSan hang in free_inner when called from at-fork child handler
authorIvan Maidanski <ivmai@mail.ru>
Fri, 15 Dec 2017 07:15:05 +0000 (10:15 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 15 Dec 2017 07:15:05 +0000 (10:15 +0300)
commit15be5550428692304d0f35c62145030d17fc3b1b
tree9658ead25a567d5884b8ec3f5343684f797d49d2
parent1e2d919ef0c1845dbe2f12dbbcff9e05055e2ea3
Workaround TSan hang in free_inner when called from at-fork child handler

* pthread_support.c [CAN_HANDLE_FORK] (GC_remove_all_threads_but_me):
Do not call GC_INTERNAL_FREE(p) if THREAD_SANITIZER and CAN_CALL_ATFORK;
add comment.
pthread_support.c