]> granicus.if.org Git - gc/commit
Fix GC_mark_stack_top assertion violation properly in mark_local
authorIvan Maidanski <ivmai@mail.ru>
Sat, 10 Dec 2016 07:37:04 +0000 (10:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 18:44:40 +0000 (21:44 +0300)
commit5065df5f45bfdc3868aa1562b64377be4ee265bb
tree4541d5b526f08d03760832a41e816add5068e644
parent8f35a9ee81cffc01f1fe93bea6b4e00c4495058b
Fix GC_mark_stack_top assertion violation properly in mark_local
(fix commit a563b883)

* mark.c (GC_mark_local): Remove assertion checking that
global_first_nonempty is not greater than GC_mark_stack_top+1 (because
global_first_nonempty could be bigger slightly more at some moments due
to concurrency between the markers); replace n_on_stack==0 with
my_top<my_first_nonempty (the latter is equivalent to
(signed_word)n_on_stack<=0).
mark.c