Mark the current context (not root) in final marking.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-05-29 10:32:42 +09:00
parent 8e390cccae
commit 9f634a6f8b
+1 -1
View File
@@ -993,7 +993,7 @@ incremental_marking_phase(mrb_state *mrb, mrb_gc *gc, size_t limit)
static void
final_marking_phase(mrb_state *mrb, mrb_gc *gc)
{
mark_context(mrb, mrb->root_c);
mark_context(mrb, mrb->c);
gc_mark_gray_list(mrb, gc);
mrb_assert(gc->gray_list == NULL);
gc->gray_list = gc->atomic_gray_list;