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

ruby-changes:16125

From: mame <ko1@a...>
Date: Sun, 30 May 2010 02:22:59 +0900 (JST)
Subject: [ruby-changes:16125] Ruby:r28080 (trunk): * ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD.

mame	2010-05-30 02:22:46 +0900 (Sun, 30 May 2010)

  New Revision: 28080

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

  Log:
    * ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD.
      This caused failure when test/csv is executed with GC.stress = true.

  Modified files:
    trunk/ChangeLog
    trunk/ext/zlib/zlib.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28079)
+++ ChangeLog	(revision 28080)
@@ -1,3 +1,8 @@
+Sun May 30 02:21:34 2010  Yusuke Endoh  <mame@t...>
+
+	* ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD.
+	  This caused failure when test/csv is executed with GC.stress = true.
+
 Sun May 30 01:25:48 2010  Masaya Tarui  <tarui@r...>
 
 	* thread.c (RB_GC_SAVE_MACHINE_CONTEXT): start GC 
Index: ext/zlib/zlib.c
===================================================================
--- ext/zlib/zlib.c	(revision 28079)
+++ ext/zlib/zlib.c	(revision 28080)
@@ -661,6 +661,7 @@
 }
 
 #define zstream_append_input2(z,v)\
+    RB_GC_GUARD(v),\
     zstream_append_input((z), (Bytef*)RSTRING_PTR(v), RSTRING_LEN(v))
 
 static void

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

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