]> granicus.if.org Git - gc/commit
Fix data race in mark_thread when updating mark_no
authorIvan Maidanski <ivmai@mail.ru>
Fri, 1 Dec 2017 16:23:13 +0000 (19:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 18 Dec 2017 07:19:28 +0000 (10:19 +0300)
commitf2571e41752dac1bdfd8c455ee26331fb8a60014
treeb96db43125b41838dae556322f6df3a5756c7cdc
parent62ad477c29f603e5e2eb46e01512d7e0a0d5ae9a
Fix data race in mark_thread when updating mark_no
(Cherry-pick commit 266c2891 from 'release-7_6' branch.)

* mark.c [PARALLEL_MARK] (GC_mark_local, GC_help_marker): Update
description comment; remove GC_acquire_mark_lock() call at the function
beginning; remove GC_release_mark_lock() call on return.
* mark.c [PARALLEL_MARK] (GC_do_parallel_mark): Remove
GC_acquire/release_mark_lock() calls around GC_mark_local() call.
* pthread_support.c [PARALLEL_MARK] (GC_mark_thread): Remove
GC_release_mark_lock() call.
* win32_threads.c [PARALLEL_MARK] (GC_mark_thread): Likewise.
mark.c
pthread_support.c
win32_threads.c