Project

General

Profile

« Previous | Next » 

Revision f4d71ad5

Added by ko1 (Koichi Sasada) almost 9 years ago

  • vm_method.c: make a rb_method_definition_t data (def) after making
    a rb_method_entry_t data (me).
    Normally, me' points def'. Some Ruby objects pointed from def' and objects are marked by me' (mark_method_entry() in gc.c).
    However, def' is built before making a me', then nobody can mark
    objects pointed from def' before making (and pointing from) me'.
    I hope this patch solve #11244.
  • vm_method.c: remove `rb_' prefix from some static functions.
  • method.h (rb_method_entry_create): constify
  • gc.c (mark_method_entry): add checking def' and def->body.iseq.iseqptr' availability because they can be NULL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e