]> 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>
Sat, 10 Dec 2016 07:37:04 +0000 (10:37 +0300)
commit1a4eb799dfb53a116cda2e844b4e95d839962241
treef70942f22afb58d5e09fd39edda5683d8a640f82
parenta0e6a69696b073250875183e8690f35f36eb8e23
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