ruby-changes:8298
From: wanabe <ko1@a...>
Date: Sat, 18 Oct 2008 00:51:59 +0900 (JST)
Subject: [ruby-changes:8298] Ruby:r19825 (trunk): * array.c: don't recycle shared-array while sort!.
wanabe 2008-10-18 00:51:35 +0900 (Sat, 18 Oct 2008) New Revision: 19825 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19825 Log: * array.c: don't recycle shared-array while sort!. Modified files: trunk/ChangeLog trunk/array.c Index: array.c =================================================================== --- array.c (revision 19824) +++ array.c (revision 19825) @@ -177,7 +177,7 @@ { if (shared) { int num = ARY_SHARED_NUM(shared) - 1; - if (num == 0) { + if (num == 0 && RBASIC(shared)->klass) { rb_ary_free(shared); rb_gc_force_recycle(shared); } Index: ChangeLog =================================================================== --- ChangeLog (revision 19824) +++ ChangeLog (revision 19825) @@ -1,3 +1,7 @@ +Sat Oct 18 00:47:51 2008 wanabe <s.wanabe@g...> + + * array.c: don't recycle shared-array while sort!. + Fri Oct 17 22:04:38 2008 wanabe <s.wanabe@g...> * array.c: recycle shared-array when it isn't referenced. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/