ruby-changes:12427
From: ko1 <ko1@a...>
Date: Wed, 15 Jul 2009 23:48:57 +0900 (JST)
Subject: [ruby-changes:12427] Ruby:r24127 (trunk): * dir.c (push_glob): fix GC problem.
ko1 2009-07-15 23:46:44 +0900 (Wed, 15 Jul 2009) New Revision: 24127 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24127 Log: * dir.c (push_glob): fix GC problem. Modified files: trunk/ChangeLog trunk/dir.c Index: ChangeLog =================================================================== --- ChangeLog (revision 24126) +++ ChangeLog (revision 24127) @@ -1,3 +1,7 @@ +Wed Jul 15 23:45:11 2009 Koichi Sasada <ko1@a...> + + * dir.c (push_glob): fix GC problem. + Wed Jul 15 17:33:52 2009 Yuki Sonoda (Yugui) <yugui@y...> * ext/purelib.rb: translates a fake path to rubygems in $" into Index: dir.c =================================================================== --- dir.c (revision 24126) +++ dir.c (revision 24127) @@ -1561,6 +1561,7 @@ { struct glob_args args; rb_encoding *enc = rb_enc_get(str); + volatile VALUE vstr = str; /* for GC mark */ if (enc == rb_usascii_encoding()) enc = rb_filesystem_encoding(); args.func = push_pattern; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/