GC must scan env from fibers even when it's not yet copied to heap; fix #3063

This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-12-31 00:11:37 +09:00
parent 4fdec33ff4
commit 3531fe179c
3 changed files with 32 additions and 19 deletions
+2
View File
@@ -27,6 +27,8 @@ struct REnv {
#define MRB_ENV_UNSHARE_STACK(e) ((e)->cioff = -1)
#define MRB_ENV_STACK_SHARED_P(e) ((e)->cioff >= 0)
MRB_API void mrb_env_unshare(mrb_state*, struct REnv*);
struct RProc {
MRB_OBJECT_HEADER;
union {