]> granicus.if.org Git - gc/commit
Fix mark stack overflow checking in push_selected
authorIvan Maidanski <ivmai@mail.ru>
Fri, 22 Jun 2018 22:17:46 +0000 (01:17 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 17 Jul 2018 06:05:23 +0000 (09:05 +0300)
commit84053cd2e870544b49455fb0de1a49009f981013
tree650d531b88e79196f8c0bcec9694cc0c014d2451
parente527fbc2433826ef65b18723595a9b42a1e3b966
Fix mark stack overflow checking in push_selected
(a cherry-pick of commit 4685f4de from 'master')

* mark.c (GC_push_selected): In case of a danger of mark stack overflow
after the first GC_push_all() call then call GC_push_all(bottom, top)
and return; remove redundant checking of GC_mark_stack_top at the end
of the function (overflow is already checked in GC_push_all).
mark.c