]> granicus.if.org Git - gc/commit
Workaround TSan false positives in suspend/resume_thread
authorIvan Maidanski <ivmai@mail.ru>
Mon, 13 Nov 2017 04:58:36 +0000 (07:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 13 Nov 2017 04:58:36 +0000 (07:58 +0300)
commit918500dcd5f629391e442f68620873909c733ea7
tree72a7f350e16b01e6c9b34fd8862e1bc34491fd07
parent59372942a7cbb3e5ffe233823906ef8611fce716
Workaround TSan false positives in suspend/resume_thread

* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL
&& GC_ENABLE_SUSPEND_THREAD] (set_suspended_ext_flag): New static
function (with GC_ATTR_NO_SANITIZE_THREAD attribute); add comment.
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL
&& GC_ENABLE_SUSPEND_THREAD] (GC_suspend_thread): Call
set_suspended_ext_flag() instead of t->flags|=SUSPENDED_EXT.
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL
&& GC_ENABLE_SUSPEND_THREAD] (GC_resume_thread): Add
GC_ATTR_NO_SANITIZE_THREAD attribute; add comment.
pthread_stop_world.c