]> granicus.if.org Git - gc/commit
Workaround TSan false positives for at-fork handlers accessing lock_holder
authorIvan Maidanski <ivmai@mail.ru>
Wed, 22 Nov 2017 22:58:40 +0000 (01:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 22 Nov 2017 22:58:40 +0000 (01:58 +0300)
commit3a524692806bde17a7b668f96c0a687f653f3a21
treead80055a9d4bfffb2d155b9155e5fe132b33ecd0
parentcfdc86ff38a5dfd2363f204bf6a0c55f402bdace
Workaround TSan false positives for at-fork handlers accessing lock_holder

* pthread_support.c (GC_wait_for_gc_completion): Skip I_HOLD_LOCK()
assertion if THREAD_SANITIZER and CAN_HANDLE_FORK; add comment.
* pthread_support.c [CAN_HANDLE_FORK && GC_ASSERTIONS]
(fork_prepare_proc, fork_parent_proc, fork_child_proc): Add
GC_ATTR_NO_SANITIZE_THREAD attribute.
pthread_support.c