зеркало из https://github.com/github/ruby.git
* vm.c (rb_thread_mark): should mark iseq itself other than normal
iseq. [ruby-dev:41880] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
201d99cc5f
Коммит
af4986f515
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 26 13:01:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm.c (rb_thread_mark): should mark iseq itself other than normal
|
||||
iseq. [ruby-dev:41880]
|
||||
|
||||
Mon Jul 26 11:51:01 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* configure.in: define BROKEN_CLOSE on FreeBSD.
|
||||
|
|
5
vm.c
5
vm.c
|
@ -1646,8 +1646,11 @@ rb_thread_mark(void *ptr)
|
|||
rb_gc_mark_locations(p, p + th->mark_stack_len);
|
||||
|
||||
while (cfp != limit_cfp) {
|
||||
rb_iseq_t *iseq = cfp->iseq;
|
||||
rb_gc_mark(cfp->proc);
|
||||
if (RUBY_VM_NORMAL_ISEQ_P(cfp->iseq)) rb_gc_mark(cfp->iseq->self);
|
||||
if (iseq) {
|
||||
rb_gc_mark(RUBY_VM_NORMAL_ISEQ_P(iseq) ? iseq->self : (VALUE)iseq);
|
||||
}
|
||||
if (cfp->me) ((rb_method_entry_t *)cfp->me)->mark = 1;
|
||||
cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче