gc.c (mrb_env_unshare): fix a write barrier bug

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-06-02 11:00:13 +09:00
parent 9369679e36
commit 93648fc954
+1
View File
@@ -395,6 +395,7 @@ mrb_env_unshare(mrb_state *mrb, struct REnv *e, mrb_bool noraise)
stack_copy(p, e->stack, len);
e->stack = p;
MRB_ENV_CLOSE(e);
mrb_write_barrier(mrb, (struct RBasic*)e);
return TRUE;
}
else {