ruby-changes:33788
From: usa <ko1@a...>
Date: Thu, 8 May 2014 02:07:33 +0900 (JST)
Subject: [ruby-changes:33788] usa:r45869 (ruby_2_0_0): merge revision(s) 45015: [Backport #9657]
usa 2014-05-08 02:07:26 +0900 (Thu, 08 May 2014) New Revision: 45869 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45869 Log: merge revision(s) 45015: [Backport #9657] * ext/bigdecimal/bigdecimal.c (BigDecimal_initialize): Insert GC guard. * ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): ditto. Modified directories: branches/ruby_2_0_0/ Modified files: branches/ruby_2_0_0/ChangeLog branches/ruby_2_0_0/ext/bigdecimal/bigdecimal.c branches/ruby_2_0_0/version.h Index: ruby_2_0_0/ChangeLog =================================================================== --- ruby_2_0_0/ChangeLog (revision 45868) +++ ruby_2_0_0/ChangeLog (revision 45869) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1 +Thu May 8 02:01:51 2014 Kenta Murata <mrkn@m...> + + * ext/bigdecimal/bigdecimal.c (BigDecimal_initialize): Insert GC guard. + + * ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): ditto. + Thu May 8 01:51:19 2014 Nobuyoshi Nakada <nobu@r...> * ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal() Index: ruby_2_0_0/ext/bigdecimal/bigdecimal.c =================================================================== --- ruby_2_0_0/ext/bigdecimal/bigdecimal.c (revision 45868) +++ ruby_2_0_0/ext/bigdecimal/bigdecimal.c (revision 45869) @@ -2402,9 +2402,11 @@ static Real *BigDecimal_new(int argc, VA https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/bigdecimal/bigdecimal.c#L2402 static VALUE BigDecimal_initialize(int argc, VALUE *argv, VALUE self) { + ENTER(1); Real *pv = rb_check_typeddata(self, &BigDecimal_data_type); - Real *x = BigDecimal_new(argc, argv); + Real *x; + GUARD_OBJ(x, BigDecimal_new(argc, argv)); if (ToValue(x)) { pv = VpCopy(pv, x); } @@ -2484,7 +2486,10 @@ BigDecimal_new(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/bigdecimal/bigdecimal.c#L2486 static VALUE BigDecimal_global_new(int argc, VALUE *argv, VALUE self) { - Real *pv = BigDecimal_new(argc, argv); + ENTER(1); + Real *pv; + + GUARD_OBJ(pv, BigDecimal_new(argc, argv)); if (ToValue(pv)) pv = VpCopy(NULL, pv); pv->obj = TypedData_Wrap_Struct(rb_cBigDecimal, &BigDecimal_data_type, pv); return pv->obj; Index: ruby_2_0_0/version.h =================================================================== --- ruby_2_0_0/version.h (revision 45868) +++ ruby_2_0_0/version.h (revision 45869) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1 #define RUBY_VERSION "2.0.0" #define RUBY_RELEASE_DATE "2014-05-08" -#define RUBY_PATCHLEVEL 478 +#define RUBY_PATCHLEVEL 479 #define RUBY_RELEASE_YEAR 2014 #define RUBY_RELEASE_MONTH 5 Property changes on: ruby_2_0_0 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r45015 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/