From a8ced88a3eab605161bedaacf22f7849b00fd978 Mon Sep 17 00:00:00 2001 From: tarui Date: Mon, 31 May 2010 16:16:39 +0000 Subject: * io.c (pipe_open): add RB_GC_GUARD. This caused failure when test/ruby/test_argf.rb is executed with GC.stress = true in mswin32_90 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ io.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3e38e717fb..ac9980ffc4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jun 1 01:14:31 2010 Masaya Tarui + + * io.c (pipe_open): add RB_GC_GUARD. + This caused failure when test/ruby/test_argf.rb is executed with + GC.stress = true in mswin32_90 + Mon May 31 19:25:58 2010 Nobuyoshi Nakada * regparse.c (onig_syntax_warn): do not use external strings as diff --git a/io.c b/io.c index d5fc02e299..6835cc0ef7 100644 --- a/io.c +++ b/io.c @@ -5112,6 +5112,9 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode, break; } } + + RB_GC_GUARD(argbuf); + if (eargp) rb_run_exec_options(&sarg, NULL); if ((fmode & FMODE_READABLE) && (fmode & FMODE_WRITABLE)) { -- cgit v1.2.3