|
From: | Archie Cobbs |
Subject: | Re: String class: hack for ORP 1.0.9 |
Date: | Mon, 11 Jul 2005 20:31:04 -0500 |
User-agent: | Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041129 |
Simon Kitching wrote:
public char[] toCharArray() { // XXX ORP 1.0.9 crashes on (char[]) clone() during bootstrap, so we // omit this optimization for now. // if (count == value.length) // return (char[]) value.clone(); char[] copy = new char[count]; VMSystem.arraycopy(value, offset, copy, 0, count); return copy; } I just wondered if it was time to remove this hack...
Sounds good to me... and in any case, ORP should be doing it's own disoptimization for VM-specific issues like this rather than forcing it on all Classpath users. -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com
[Prev in Thread] | Current Thread | [Next in Thread] |