]> 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>
Mon, 18 Dec 2017 07:14:55 +0000 (10:14 +0300)
commit62ad477c29f603e5e2eb46e01512d7e0a0d5ae9a
tree69d4f502a5531db405583005316061b1c1dfcce9
parent7de43fef17e24f4765ade994b181ae97a68f5110
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