[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65720] [ruby-trunk - Bug #10373] add RB_GC_GUARD in rb_mod_define_method() (r47891)

From: usa@...
Date: 2014-10-15 07:16:56 UTC
List: ruby-core #65720
Issue #10373 has been updated by Usaku NAKAMURA.

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.

----------------------------------------
Bug #10373: add RB_GC_GUARD in rb_mod_define_method() (r47891)
https://bugs.ruby-lang.org/issues/10373#change-49452

* Author: Tomoyuki Chikanaga
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: core
* Target version: current: 2.2.0
* ruby -v: -
* Backport: 2.0.0: DONE, 2.1: REQUIRED
----------------------------------------
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.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next