Stephen Crawley wrote:
[EMAIL PROTECTED] said:
I'd be interested to hear of other reasons for Java's requirement to
intern all literal strings and constants.
Backwards compatibility.
At this point we can only conjecture as to why Java was originally defined
this way. My guess is that this
I stand corrected.
-- Steve
___
Classpath mailing list
Classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath
[EMAIL PROTECTED] said:
> I'd be interested to hear of other reasons for Java's requirement to
> intern all literal strings and constants.
Backwards compatibility.
At this point we can only conjecture as to why Java was originally defined
this way. My guess is that this decision was made in t
Hi Archie,
On Mon, 2005-07-11 at 20:27 -0500, Archie Cobbs wrote:
> Simon Kitching wrote:.
> > * Class.getName returns strings that have been interned. I don't
> > think this is explicitly required by the java specs but is
> > certainly true for Sun's JVM and seems likely to be done by
> > a
On Jul 11, 2005, at 4:54 AM, David P Grove wrote:
This started showing up in regression tests of Jikes RVM with
classpath
cvs head recently. I haven't dug deeply, so it could be a latent
problem
in Jikes RVM that was exposed by a classpath change, rather than a
real
classpath bug, but migh
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.arrayco
Simon Kitching wrote:.
* Class.getName returns strings that have been interned. I don't
think this is explicitly required by the java specs but is
certainly true for Sun's JVM and seems likely to be done by
any sensible JVM.
You definitely make some good arguments, but this one is not
nec
Hi,
In String.java there is this piece of code:
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[co
On Tue, 2005-07-12 at 11:02 +1200, Simon Kitching wrote:
> It would certainly be nice to know that collection methods will
> automatically work more efficiently when the objects being manipulated
> are String objects that have been interned (of course String.intern has
> to be used appropriately).
Hi,
I think the performance of String.equals could be improved.
Currently:
public boolean equals(Object anObject)
{
if (! (anObject instanceof String))
return false;
String str2 = (String) anObject;
if (count != str2.count)
return false;
if (value == str2.value &&
David P Grove wrote:
> This started showing up in regression tests of Jikes RVM with classpath
> cvs head recently. I haven't dug deeply, so it could be a latent problem
> in Jikes RVM that was exposed by a classpath change, rather than a real
> classpath bug, but might still be worth mentioning.
This started showing up in regression tests of Jikes RVM with classpath
cvs head recently. I haven't dug deeply, so it could be a latent problem
in Jikes RVM that was exposed by a classpath change, rather than a real
classpath bug, but might still be worth mentioning. The failing program
is S
12 matches
Mail list logo