Preallocate SystemStackError; ref #3421

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-02-15 11:59:47 +09:00
parent 0376d4d4c6
commit 8efa7b00df
5 changed files with 7 additions and 5 deletions
+1
View File
@@ -865,6 +865,7 @@ root_scan_phase(mrb_state *mrb, mrb_gc *gc)
}
/* mark pre-allocated exception */
mrb_gc_mark(mrb, (struct RBasic*)mrb->nomem_err);
mrb_gc_mark(mrb, (struct RBasic*)mrb->stack_err);
#ifdef MRB_GC_FIXED_ARENA
mrb_gc_mark(mrb, (struct RBasic*)mrb->arena_err);
#endif