Mark the exception object in the final marking phase; ref #3702

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-06-15 14:53:49 +09:00
parent 52443c80e2
commit 357e478e2c
+1
View File
@@ -995,6 +995,7 @@ static void
final_marking_phase(mrb_state *mrb, mrb_gc *gc)
{
mark_context(mrb, mrb->c);
mrb_gc_mark(mrb, (struct RBasic*)mrb->exc);
gc_mark_gray_list(mrb, gc);
mrb_assert(gc->gray_list == NULL);
gc->gray_list = gc->atomic_gray_list;