From 29707c1d73f35c15d118ea5ca2330e85ac475dd6 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 30 Jan 2013 04:17:59 +0000 Subject: 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 --- cont.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cont.c') 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 -- cgit v1.2.3