]> granicus.if.org Git - gc/commit
Do not add no_sanitize_thread to fork at-handlers if no pthread_atfork
authorIvan Maidanski <ivmai@mail.ru>
Thu, 14 Dec 2017 06:53:18 +0000 (09:53 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 14 Dec 2017 06:53:18 +0000 (09:53 +0300)
commit00389b780fb926f8249ea2df4522f8d6aeb06d57
tree0cc8d2b4dfc128cdd0b26be7a3816ffcf287c881
parentd3ead52a842ada81889577a7aa68e98e3bb87e54
Do not add no_sanitize_thread to fork at-handlers if no pthread_atfork
(fix commit 3a52469)

* pthread_support.c [THREAD_SANITIZER] (GC_wait_for_gc_completion): Do
not skip I_HOLD_LOCK() assertion unless CAN_CALL_ATFORK.
* pthread_support.c [CAN_HANDLE_FORK && GC_ASSERTIONS]
(fork_prepare_proc, fork_parent_proc, fork_child_proc): Do not add
GC_ATTR_NO_SANITIZE_THREAD attribute unless CAN_CALL_ATFORK.
pthread_support.c