Skip to content

Commit

Permalink
Mark the current context (not root) in final marking.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed May 29, 2017
1 parent 8e390cc commit 9f634a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9f634a6

Please sign in to comment.