Project

General

Profile

Bug #10373

add RB_GC_GUARD in rb_mod_define_method() (r47891)

Added by nagachika (Tomoyuki Chikanaga) about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
-
[ruby-core:65632]

Description

This ticket is for backport management.

r47891 added RB_GC_GUARD() in rb_mod_define_method() to protect method entry (VALUE body which can be derived from rb_block_lambda()) from unexpected GC.
It seemsd ruby_2_1 and ruby_2_0_0 have similar potential problem.

Associated revisions

Revision 46885440
Added by usa (Usaku NAKAMURA) about 5 years ago

merge revision(s) 47891: [Backport #10373]

    proc.c: method body GC guard

    * proc.c (rb_mod_define_method): guard method body to prevent its

method entry from GC.

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

Revision 47935
Added by usa (Usaku NAKAMURA) about 5 years ago

merge revision(s) 47891: [Backport #10373]

proc.c: method body GC guard

* proc.c (rb_mod_define_method): guard method body to prevent its

method entry from GC.

Revision 43979d40
Added by nagachika (Tomoyuki Chikanaga) about 5 years ago

merge revision(s) r47891: [Backport #10373]

    proc.c: method body GC guard

    * proc.c (rb_mod_define_method): guard method body to prevent its

method entry from GC.

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

Revision 47947
Added by nagachika (Tomoyuki Chikanaga) about 5 years ago

merge revision(s) r47891: [Backport #10373]

proc.c: method body GC guard

* proc.c (rb_mod_define_method): guard method body to prevent its

method entry from GC.

History

Updated by usa (Usaku NAKAMURA) about 5 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: DONE, 2.1: REQUIRED

Backported into ruby_2_0_0 at r47935.

Updated by nagachika (Tomoyuki Chikanaga) about 5 years ago

  • Backport changed from 2.0.0: DONE, 2.1: REQUIRED to 2.0.0: DONE, 2.1: DONE

Backported into ruby_2_1 at r47947.

Also available in: Atom PDF