25 lines
852 B
Diff
25 lines
852 B
Diff
|
From 1887f60a8540f64f5c7bb14d57c0be70506941b8 Mon Sep 17 00:00:00 2001
|
||
|
From: mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
||
|
Date: Sat, 29 May 2010 17:22:46 +0000
|
||
|
Subject: [PATCH] * 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
|
||
|
---
|
||
|
ChangeLog | 5 +++++
|
||
|
ext/zlib/zlib.c | 1 +
|
||
|
2 files changed, 6 insertions(+), 0 deletions(-)
|
||
|
|
||
|
Index: ext/zlib/zlib.c
|
||
|
===================================================================
|
||
|
--- ext/zlib/zlib.c.orig
|
||
|
+++ ext/zlib/zlib.c
|
||
|
@@ -610,6 +610,7 @@ zstream_append_input(z, src, len)
|
||
|
}
|
||
|
|
||
|
#define zstream_append_input2(z,v)\
|
||
|
+ RB_GC_GUARD(v),\
|
||
|
zstream_append_input((z), RSTRING(v)->ptr, RSTRING(v)->len)
|
||
|
|
||
|
static void
|