vm.c (rb_thread_mark): update comment about marking `me'

[ruby-core:64340] [ruby-core:64341]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2014-08-14 21:10:06 +00:00
parent 500fbe7666
commit 54e546c6c6
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Aug 15 06:00:56 2014 Eric Wong <e@80x24.org>
* vm.c (rb_thread_mark): update comment about marking `me'
[ruby-core:64340] [ruby-core:64341]
Fri Aug 15 05:53:59 2014 Eric Wong <e@80x24.org>
* README.EXT: preliminary documentation for RB_GC_GUARD

3
vm.c
View File

@ -2008,7 +2008,8 @@ rb_thread_mark(void *ptr)
rb_gc_mark(RUBY_VM_NORMAL_ISEQ_P(iseq) ? iseq->self : (VALUE)iseq);
}
if (cfp->me) {
/* TODO: marking `me' can be more sophisticated way */
/* bitmap marking `me' does not seem worth the trouble:
* [ruby-core:64340] [ruby-core:64341] */
((rb_method_entry_t *)cfp->me)->mark = 1;
rb_mark_method_entry(cfp->me);
}