mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.c (rb_thread_mark): mark callers iseqs. [ruby-core:25474]
[Bug #2062] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
488024dfcf
commit
4fb9d7ffee
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Sep 8 21:48:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm.c (rb_thread_mark): mark callers iseqs. [ruby-core:25474]
|
||||||
|
[Bug #2062]
|
||||||
|
|
||||||
Tue Sep 8 11:53:58 2009 Koichi Sasada <ko1@atdot.net>
|
Tue Sep 8 11:53:58 2009 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* iseq.c (iseq_mark): no need to mark inline cache entries.
|
* iseq.c (iseq_mark): no need to mark inline cache entries.
|
||||||
|
|
1
vm.c
1
vm.c
|
@ -1573,6 +1573,7 @@ rb_thread_mark(void *ptr)
|
||||||
|
|
||||||
while (cfp != limit_cfp) {
|
while (cfp != limit_cfp) {
|
||||||
rb_gc_mark(cfp->proc);
|
rb_gc_mark(cfp->proc);
|
||||||
|
if (cfp->iseq) rb_gc_mark(cfp->iseq->self);
|
||||||
cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
|
cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue