diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Dec 31 22:57:00 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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 <ocean@m2.ccsnet.ne.jp> * ext/syck/rubyext.c: attribute name was truncated with Rev1.64. @@ -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; |