Re: intern commit

Date view Thread view Subject view Author view

From: Godmar Back (gback@cs.utah.edu)
Date: Sun Dec 20 1998 - 20:19:44 EST


>
> Godmar Back writes:
> > > - Intern all String objects created internally from char arrays
> > > or from UTF-8 constants
> >
> > Which specifically are these?
>
> Everywhere that calls the function that creates a new String object
> from a char array or from a Utf8Const *. I don't remember what all
> the occurrences are..
>
> The old function for doing this was makeJavaString().

For the char * is was makeJavaString, but for Utf8Const it was
Utf8Const2JavaString.
This would indeed intern a System.out.println("Hello, World\n")
string --- in fact, this would intern all string constants
unconditionally.

I would like the unconditional interning of all string constants
to be optional. Then, let's do some measurements and see if it
pays off. I really do not whether it would --- I don't mean to
be skeptical here, I really don't know.

        - Godmar


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:26 EDT