Unverified Commit 1b261382 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4011 from kou/fix-gc-env-children

Fix wrong the number of marked objects of MRB_TT_ENV in gray mark phase
parents 1c66d42e 4194fe9d
......@@ -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