aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-16 14:54:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-16 14:54:22 +0000
commit1fdf66ad676cdeebf0b9a2e24d828c8643475ee0 (patch)
tree3dcdfe380b37c1040961f14aeb67e260005c9317
parent2048950e16974f14159f9945fa8be576b6022b2a (diff)
downloadruby-1fdf66ad676cdeebf0b9a2e24d828c8643475ee0.tar.gz
* eval.c (rb_thread_start_1): outer block variables wasn't linked to
threads. fixed: [ruby-dev:25700] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--eval.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e639a2782d..4ca76cf3fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Feb 16 23:54:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_start_1): outer block variables wasn't linked to
+ threads. fixed: [ruby-dev:25700]
+
Wed Feb 16 15:11:43 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::Nonblock#initialize):
diff --git a/eval.c b/eval.c
index ad7465630d..78fa74d1c6 100644
--- a/eval.c
+++ b/eval.c
@@ -11754,7 +11754,7 @@ rb_thread_start_1()
ruby_scope = ip->scope;
ruby_iter = ip->iter;
ruby_cref = ip->cref;
- ruby_dyna_vars = 0;
+ ruby_dyna_vars = ((struct BLOCK *)DATA_PTR(proc))->dyna_vars;
PUSH_FRAME();
_frame.iter = ITER_CUR;
PUSH_TAG(PROT_NONE);