diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 07:16:00 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 07:16:00 +0000 |
commit | 468854406c57b319c0067c8582900d76fd514e28 (patch) | |
tree | e1b856dd20dc60e60c8a67758d84bdcfd694ef8c | |
parent | f173b876f6a55a4b9cbbf7c3535cc7c3341b7af4 (diff) |
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
-rw-r--r-- | proc.c | 1 | ||||
-rw-r--r-- | version.h | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1392,6 +1392,7 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod) } } rb_method_entry_set(mod, id, method->me, noex); + RB_GC_GUARD(body); } else if (rb_obj_is_proc(body)) { rb_proc_t *proc; @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.0.0" #define RUBY_RELEASE_DATE "2014-10-15" -#define RUBY_PATCHLEVEL 582 +#define RUBY_PATCHLEVEL 583 #define RUBY_RELEASE_YEAR 2014 #define RUBY_RELEASE_MONTH 10 |