Re: interning

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Sun Dec 20 1998 - 20:14:59 EST


Godmar Back writes:
> So, would you always intern a java string created from a CONSTANT_String
> entry in the constant pool when it's being resolved to CONSTANT_ResolvedString?
>
> I would that might not be what we want, since it would happen if you,
> for instance, write
> System.out.println("Hello, World\n");
> --- you don't want to intern that string.

Right now we would intern it.. however, it's trivial to add a new
function to create a String object and not intern it. Then the
caller can decide by calling the appropriate function.

Right now there's only stringJavaCreate(), but we could have two,
stringJavaCreate() and stringJavaCreateInterned() instead.

> Also, did you do the reference counting thing?

No.. (one thing at a time :-) Like I said before, it
will be easy to retrofit.

-Archie

___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com


Date view Thread view Subject view Author view

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