summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-12-31 00:11:37 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-12-31 00:11:37 +0900
commit3531fe179c0d58125e13dd08c53fe1ab084339c0 (patch)
tree2b0828f0080c6b95f50d3d098f8c4f00f82c373e /include
parent4fdec33ff44a5d443014a73caaa2d30a09fb9438 (diff)
downloadmruby-3531fe179c0d58125e13dd08c53fe1ab084339c0.tar.gz
mruby-3531fe179c0d58125e13dd08c53fe1ab084339c0.zip
GC must scan env from fibers even when it's not yet copied to heap; fix #3063
Diffstat (limited to 'include')
-rw-r--r--include/mruby/proc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index 24f0f319f..5965a2b39 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -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 {