Eliminate TSan false positive related to stop_info.stack_ptr access
authorIvan Maidanski <ivmai@mail.ru>
Thu, 23 Nov 2017 22:16:50 +0000 (01:16 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 23 Nov 2017 22:16:50 +0000 (01:16 +0300)
commita194093d6f8f5fd0af1d28cbede6802417a5fef5
treefe78f0544054ae66f9035c9970ef731bb27cc969
parent9f8885c325e66624eac3f08c12158ef1d24716c2
Eliminate TSan false positive related to stop_info.stack_ptr access

* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL]
(GC_store_stack_ptr): New inline function definition (move the code
from GC_suspend_handler_inner but stop_info.stack_ptr is now stored
atomically); add comment.
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL]
(GC_suspend_handler_inner): Call GC_store_stack_ptr().
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL]
(GC_push_all_stacks): Use AO_load to fetch p->stop_info.stack_ptr.
pthread_stop_world.c