Mark `mrb->backtrace.exc` as GC root; fix #3388

parent 6e0ba008
...@@ -857,6 +857,7 @@ root_scan_phase(mrb_state *mrb, mrb_gc *gc) ...@@ -857,6 +857,7 @@ root_scan_phase(mrb_state *mrb, mrb_gc *gc)
mrb_gc_mark(mrb, (struct RBasic*)mrb->top_self); mrb_gc_mark(mrb, (struct RBasic*)mrb->top_self);
/* mark exception */ /* mark exception */
mrb_gc_mark(mrb, (struct RBasic*)mrb->exc); mrb_gc_mark(mrb, (struct RBasic*)mrb->exc);
mrb_gc_mark(mrb, (struct RBasic*)mrb->backtrace.exc);
/* mark pre-allocated exception */ /* mark pre-allocated exception */
mrb_gc_mark(mrb, (struct RBasic*)mrb->nomem_err); mrb_gc_mark(mrb, (struct RBasic*)mrb->nomem_err);
#ifdef MRB_GC_FIXED_ARENA #ifdef MRB_GC_FIXED_ARENA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment