Insert ` mrb_field_write_barrier()` for GC; fix #3534

parent 246db711
...@@ -61,6 +61,7 @@ closure_setup(mrb_state *mrb, struct RProc *p, int nlocals) ...@@ -61,6 +61,7 @@ closure_setup(mrb_state *mrb, struct RProc *p, int nlocals)
e = mrb->c->ci->env; e = mrb->c->ci->env;
} }
p->env = e; p->env = e;
mrb_field_write_barrier(mrb, (struct RBasic *)p, (struct RBasic *)p->env);
} }
struct RProc * struct RProc *
......
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