From a5e6541ad6d382ca35c9b0f90d40f674951ae731 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Dec 2005 13:57:36 +0000 Subject: [PATCH] * eval.c (rb_thread_save_context): should not recycle scope object used in a thread. fixed: [ruby-dev:28177] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 16ac8b3f4b..46ce0afa75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Dec 31 22:57:00 2005 Nobuyoshi Nakada + + * eval.c (rb_thread_save_context): should not recycle scope object used + in a thread. fixed: [ruby-dev:28177] + Sat Dec 31 19:50:38 2005 Hirokazu Yamamoto * ext/syck/rubyext.c: attribute name was truncated with Rev1.64. diff --git a/eval.c b/eval.c index 62a0a2a4cc..b7f681cd65 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;