]> granicus.if.org Git - gc/commit
Eliminate unsigned fl_builder_count underflow in mark_thread
authorIvan Maidanski <ivmai@mail.ru>
Mon, 21 Aug 2017 22:09:59 +0000 (01:09 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 21 Aug 2017 22:09:59 +0000 (01:09 +0300)
commit207ba534acd38fd1acd722e02a07cc33e09720c8
treef6d59b4d383b7be2aa4ba5d368a97104dbd794f4
parentf5e3318adf3c8e31fb1dd314a323281c5fa3c3f2
Eliminate unsigned fl_builder_count underflow in mark_thread
(refactor commit 0ca6d3f)

* include/private/gc_priv.h [PARALLEL_MARK] (GC_fl_builder_count):
Change type from word to signed_word.
* reclaim.c [PARALLEL_MARK] (GC_fl_builder_count): Likewise.
* mark.c [PARALLEL_MARK] (GC_wait_for_markers_init): Change type of
count local variable to signed_word; add assertion that count is
non-negative.
* pthread_support.c [PARALLEL_MARK] (GC_mark_thread): Add comment that
GC_fl_builder_count can be negative here.
* win32_threads.c [PARALLEL_MARK] (GC_mark_thread): Likewise.
* reclaim.c [PARALLEL_MARK] (GC_fl_builder_count): Refine comment.
include/private/gc_priv.h
mark.c
pthread_support.c
reclaim.c
win32_threads.c