]> 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>
Fri, 15 Dec 2017 18:04:05 +0000 (21:04 +0300)
commit266c2891eece9cff6098116cbbb3ea1e4beddb5a
tree870adbd670070a2fe8e868a5747b9c33aa8e81ae
parent34b1cba8a5abf7473b6c7cca7d2113ab6e4c5b8c
Fix data race in mark_thread when updating mark_no
(Cherry-pick commit 613ec90c from 'master' 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