harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [jchevm] native method API for _jc_new_intern_string -- do you plan to add to _jc_ilib_entry table?
Date Tue, 14 Feb 2006 11:12:22 GMT
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.


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 (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

View raw message