mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Revert "env referred from top-level callinfo should not be unshared; fix #4019"
This reverts commit 72581696d3.
The #4012 that may have been the trigger for issue #4019 was later reverted by #4039 due to issue #4021.
This commit is contained in:
committed by
Yukihiro "Matz" Matsumoto
parent
d503d9b113
commit
307812ff20
@@ -375,7 +375,6 @@ mrb_env_unshare(mrb_state *mrb, struct REnv *e, mrb_bool noraise)
|
||||
if (e == NULL) return TRUE;
|
||||
if (!MRB_ENV_ONSTACK_P(e)) return TRUE;
|
||||
if (e->cxt != mrb->c) return TRUE;
|
||||
if (e == CI_ENV(mrb->c->cibase)) return TRUE; /* for mirb */
|
||||
|
||||
e->cxt = NULL; /* make possible to GC the fiber that generated the env */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user