mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
* 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/branches/ruby_1_8@9781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
661880e227
commit
f9c6aa9f11
2 changed files with 6 additions and 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]
|
||||||
|
|
||||||
Fri Dec 30 18:22:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Dec 30 18:22:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* gc.c (garbage_collect): mark objects refered from aborting threads.
|
* gc.c (garbage_collect): mark objects refered from aborting threads.
|
||||||
|
|
1
eval.c
1
eval.c
|
@ -10117,6 +10117,7 @@ rb_thread_save_context(th)
|
||||||
|
|
||||||
th->frame = ruby_frame;
|
th->frame = ruby_frame;
|
||||||
th->scope = ruby_scope;
|
th->scope = ruby_scope;
|
||||||
|
ruby_scope->flags |= SCOPE_DONT_RECYCLE;
|
||||||
th->klass = ruby_class;
|
th->klass = ruby_class;
|
||||||
th->wrapper = ruby_wrapper;
|
th->wrapper = ruby_wrapper;
|
||||||
th->cref = ruby_cref;
|
th->cref = ruby_cref;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue