summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-31 13:57:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-31 13:57:36 +0000
commit3d88eb65dc3de6279730a580ca49045f15bfbb3e (patch)
tree3ef90a7e9443c240af9f2d00ec21aba82fddf49f /eval.c
parentb0967c33a77f9647dbf8cb250e11f55afa75f7be (diff)
downloadruby-3d88eb65dc3de6279730a580ca49045f15bfbb3e.tar.gz
ruby-3d88eb65dc3de6279730a580ca49045f15bfbb3e.tar.xz
ruby-3d88eb65dc3de6279730a580ca49045f15bfbb3e.zip
* eval.c (rb_thread_save_context): should not recycle scope object used
in a thread. fixed: [ruby-dev:28177] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 62a0a2a4c..b7f681cd6 100644
--- a/eval.c
+++ b/eval.c
@@ -10131,6 +10131,7 @@ rb_thread_save_context(rb_thread_t th)
th->frame = ruby_frame;
th->scope = ruby_scope;
+ ruby_scope->flags |= SCOPE_DONT_RECYCLE;
th->klass = ruby_class;
th->wrapper = ruby_wrapper;
th->cref = ruby_cref;