sure -- String interning is in the kernel precisely so that the VM
implementor (i.e. you) can choose to do it in native or Java code.

Of course, they have to be interned into the same table as the JLS
string literals.

Regards,
Tim

Archie Cobbs wrote:
> Weldon Washburn wrote:
>> I am working on kernel_path String.java.  It wants to call a native
>> method to do the intern work.  If you plan to add a native method that
>> does String intern, I won't spend the time doing interning in Java
>> code.   I think this code is related to  _jc_ilib_entry table.  Do you
>> have thoughts on the best approach?
> 
> The best approach (imho) is to do interning in Java, using a
> WeakHashMap, which is perfect for the task. The Classpath
> implementation is a mere 10 lines or so.
> 
> -Archie
> 
> __________________________________________________________________________
> Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com
> 

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

Reply via email to