Permalink
Browse files

* ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD.

  This caused failure when test/csv is executed with GC.stress = true.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 41557b4 commit 1887f60a8540f64f5c7bb14d57c0be70506941b8 @mame mame committed May 29, 2010
Showing with 6 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +1 −0 ext/zlib/zlib.c
View
@@ -1,3 +1,8 @@
+Sun May 30 02:21:34 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * 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@ruby-lnag.org>
* thread.c (RB_GC_SAVE_MACHINE_CONTEXT): start GC
View
@@ -661,6 +661,7 @@ zstream_append_input(struct zstream *z, const Bytef *src, unsigned int len)
}
#define zstream_append_input2(z,v)\
+ RB_GC_GUARD(v),\
zstream_append_input((z), (Bytef*)RSTRING_PTR(v), RSTRING_LEN(v))
static void

0 comments on commit 1887f60

Please sign in to comment.