Skip to content

Commit

Permalink
Mark whole root objects in final_marking_phase(); fix #3603
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 17, 2017
1 parent 3231219 commit 7614939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc.c
Expand Up @@ -996,7 +996,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_stack(mrb, mrb->root_c);
mark_context(mrb, mrb->root_c);
gc_mark_gray_list(mrb, gc);
mrb_assert(gc->gray_list == NULL);
gc->gray_list = gc->atomic_gray_list;
Expand Down

0 comments on commit 7614939

Please sign in to comment.