Commit 54246db0 authored by pyama86's avatar pyama86 Committed by Yukihiro "Matz" Matsumoto

irep is released when Fiber is terminated

parent 62e8e910
......@@ -965,9 +965,11 @@ gc_gray_mark(mrb_state *mrb, mrb_gc *gc, struct RBasic *obj)
size_t i;
mrb_callinfo *ci;
if (!c) break;
if (!c || c->status == MRB_FIBER_TERMINATED) break;
/* mark stack */
i = c->stack - c->stbase;
if (c->ci) {
i += ci_nregs(c->ci);
}
......
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