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

ruby-changes:30758

From: akr <ko1@a...>
Date: Thu, 5 Sep 2013 02:21:49 +0900 (JST)
Subject: [ruby-changes:30758] akr:r42837 (trunk): * bignum.c (rb_big_divrem_normal): Add GC guards.

akr	2013-09-05 02:21:43 +0900 (Thu, 05 Sep 2013)

  New Revision: 42837

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

  Log:
    * bignum.c (rb_big_divrem_normal): Add GC guards.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42836)
+++ ChangeLog	(revision 42837)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Sep  5 02:17:06 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (rb_big_divrem_normal): Add GC guards.
+
 Thu Sep  5 00:38:32 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (rb_big_divrem_normal): New function.
Index: bignum.c
===================================================================
--- bignum.c	(revision 42836)
+++ bignum.c	(revision 42837)
@@ -2725,6 +2725,9 @@ rb_big_divrem_normal(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/bignum.c#L2725
     bigtrunc(q);
     bigtrunc(r);
 
+    RB_GC_GUARD(x);
+    RB_GC_GUARD(y);
+
     return rb_assoc_new(q, r);
 }
 

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

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