]> granicus.if.org Git - gc/commit
Fix lack of barriers to synchronize memory for suspend_handler
authorIvan Maidanski <ivmai@mail.ru>
Thu, 23 Nov 2017 23:21:46 +0000 (02:21 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 15 Dec 2017 17:59:07 +0000 (20:59 +0300)
commit406ea1a9d28ff06eb2dd639aabe43803536908db
tree8386e80d3e62c641fefc5b1882ab3cbba65a5d5c
parent3961ab98da9d8bf002a08c02101b909944099897
Fix lack of barriers to synchronize memory for suspend_handler

pthread_kill is not on the list of functions which synchronize memory.

* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL]
(GC_world_is_stopped): Reformat comment.
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL]
(GC_suspend_handler_inner): Use AO_load_acquire instead of AO_load
to fetch the value of GC_stop_count; add comment.
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL]
(GC_start_world): Use AO_store_release instead of AO_store to reset
GC_world_is_stopped; add comment.
pthread_stop_world.c