Mark the root context in final_marking_phase.

Because the root context cannot be marked from fibers.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-06-17 08:30:33 +09:00
parent 8daabe7115
commit 819ccd3b85
+1
View File
@@ -997,6 +997,7 @@ final_marking_phase(mrb_state *mrb, mrb_gc *gc)
{
mrb_gc_mark_gv(mrb);
mark_context(mrb, mrb->c);
mark_context(mrb, mrb->root_c);
mrb_gc_mark(mrb, (struct RBasic*)mrb->exc);
gc_mark_gray_list(mrb, gc);
mrb_assert(gc->gray_list == NULL);