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>
Fri, 22 Jun 2018 22:17:46 +0000 (01:17 +0300)
commit4685f4de7b4cbbd71dbfa1867635e1e0e790a6d1
tree8f315459c12ce84e857d4929734f8761435cb296
parent8eb6f8d93fe7cb922969e47ec343e8dafb5cbb2b
Fix mark stack overflow checking in push_selected

* 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