ruby-changes:1952
From: ko1@a...
Date: 14 Sep 2007 16:26:20 +0900
Subject: [ruby-changes:1952] ko1 - Ruby:r13443 (trunk): * insnhelper.ci (vm_expandarray): assignment should be placed
ko1 2007-09-14 16:26:07 +0900 (Fri, 14 Sep 2007) New Revision: 13443 Modified files: trunk/ChangeLog trunk/insnhelper.ci Log: * insnhelper.ci (vm_expandarray): assignment should be placed after creating new array. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/insnhelper.ci?r1=13443&r2=13442 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13443&r2=13442 Index: ChangeLog =================================================================== --- ChangeLog (revision 13442) +++ ChangeLog (revision 13443) @@ -1,3 +1,8 @@ +Fri Sep 14 16:24:04 2007 Koichi Sasada <ko1@a...> + + * insnhelper.ci (vm_expandarray): assignment should be placed + after creating new array. + Fri Sep 14 16:17:30 2007 Koichi Sasada <ko1@a...> * bootstraptest/runner.rb: add a stress test (-s). Index: insnhelper.ci =================================================================== --- insnhelper.ci (revision 13442) +++ insnhelper.ci (revision 13443) @@ -1334,7 +1334,7 @@ int is_splat = flag & 0x01; int space_size = num + is_splat; VALUE *base = cfp->sp, *ptr; - volatile VALUE tmp_ary = ary; + volatile VALUE tmp_ary; int len; cfp->sp += space_size; @@ -1342,6 +1342,8 @@ if (TYPE(ary) != T_ARRAY) { ary = rb_ary_to_ary(ary); } + + tmp_ary = ary; ptr = RARRAY_PTR(ary); len = RARRAY_LEN(ary); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml