aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-30 04:17:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-30 04:17:59 +0000
commit29707c1d73f35c15d118ea5ca2330e85ac475dd6 (patch)
treef5f5da12d8302369aec601b13c5f8bfa7d2f8d5b /cont.c
parent3df94d7b5d7129d50443b77f869835b958423fd5 (diff)
downloadruby-29707c1d73f35c15d118ea5ca2330e85ac475dd6.tar.gz
cont.c: fiber local svar
* cont.c (cont_restore_thread): svar should be separate per fibers. [ruby-core:51331] [Bug #7678] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cont.c b/cont.c
index 9b43480dd3..2656cbeb2c 100644
--- a/cont.c
+++ b/cont.c
@@ -512,6 +512,8 @@ cont_restore_thread(rb_context_t *cont)
th->protect_tag = sth->protect_tag;
th->errinfo = sth->errinfo;
th->first_proc = sth->first_proc;
+ th->root_lep = sth->root_lep;
+ th->root_svar = sth->root_svar;
}
#if FIBER_USE_NATIVE