mark pre-allocated exception

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-06-04 11:36:19 +09:00
parent bccd43da71
commit 8a9e2066c3
+2
View File
@@ -705,6 +705,8 @@ root_scan_phase(mrb_state *mrb)
mrb_gc_mark(mrb, (struct RBasic*)mrb->top_self);
/* mark exception */
mrb_gc_mark(mrb, (struct RBasic*)mrb->exc);
/* mark pre-allocated exception */
mrb_gc_mark(mrb, (struct RBasic*)mrb->nomem_err);
mark_context(mrb, mrb->root_c);
if (mrb->root_c->fib) {