[前][次][番号順一覧][スレッド一覧]

ruby-changes:29776

From: akr <ko1@a...>
Date: Mon, 8 Jul 2013 08:04:35 +0900 (JST)
Subject: [ruby-changes:29776] akr:r41828 (trunk): * bignum.c (bary_mul): Add a RB_GC_GUARD.

akr	2013-07-08 08:04:25 +0900 (Mon, 08 Jul 2013)

  New Revision: 41828

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41828

  Log:
    * bignum.c (bary_mul): Add a RB_GC_GUARD.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41827)
+++ ChangeLog	(revision 41828)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jul  8 08:03:01 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (bary_mul): Add a RB_GC_GUARD.
+
 Sun Jul  7 23:56:32 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (bary_mul_karatsuba): Unreachable code removed.  Remove
Index: bignum.c
===================================================================
--- bignum.c	(revision 41827)
+++ bignum.c	(revision 41828)
@@ -1867,6 +1867,7 @@ bary_mul(BDIGIT *zds, size_t zl, BDIGIT https://github.com/ruby/ruby/blob/trunk/bignum.c#L1867
         z = bigtrunc(bigmul1_toom3(x, y));
         MEMCPY(zds, BDIGITS(z), BDIGIT, RBIGNUM_LEN(z));
         MEMZERO(zds + RBIGNUM_LEN(z), BDIGIT, zl - RBIGNUM_LEN(z));
+        RB_GC_GUARD(z);
     }
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]