Project

General

Profile

« Previous | Next » 

Revision 9a272395

Added by mame (Yusuke Endoh) over 12 years ago

  • proc.c (struct METHOD), gc.c (gc_marks), vm_method.c
    (rb_gc_mark_unlinked_live_method_entries): fix SEGV bug.
    rb_method_entry_t was free'd even when the method is still on the
    stack if it is BMETHOD (i.e., Method#call). This is because
    rb_method_entry_t is embedded in struct METHOD. This commit
    separates them and marks the live method entries.
    See [ruby-core:38449] in detail. fix [Bug #5047] [ruby-core:38171]

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