Decremented wrong variable

This commit is contained in:
Justin Ethier 2015-11-14 00:21:02 -05:00
parent 65e2a1a18b
commit 1b0e1aed36

2
gc.c
View file

@ -711,7 +711,7 @@ void gc_empty_collector_stack()
{ {
// Mark stack is only used by the collector thread, so no sync needed // Mark stack is only used by the collector thread, so no sync needed
while (mark_stack_i > 0) { // not empty while (mark_stack_i > 0) { // not empty
mark_stack--; mark_stack_i--;
gc_mark_black(mark_stack[mark_stack_i]); gc_mark_black(mark_stack[mark_stack_i]);
} }
} }