Commit 4194fe9d authored by Kouhei Sutou's avatar Kouhei Sutou

Fix wrong the number of marked objects of MRB_TT_ENV in gray mark phase

If MRB_TT_ENV has stack shared flag or bidx flag, flags is too large
than the real stack size.
parent 1c66d42e
......@@ -938,7 +938,7 @@ gc_gray_mark(mrb_state *mrb, mrb_gc *gc, struct RBasic *obj)
break;
case MRB_TT_ENV:
children += (int)obj->flags;
children += MRB_ENV_STACK_LEN(obj);
break;
case MRB_TT_FIBER:
......
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