Permalink
Browse files

Mark the root context in `final_marking_phase`.

Because the root context cannot be marked from fibers.
  • Loading branch information...
matz committed Jun 16, 2017
1 parent 8daabe7 commit 819ccd3b859427e38d0b4e5a22ec0005b68c3b31
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gc.c
View
@@ -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);

0 comments on commit 819ccd3

Please sign in to comment.