harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Archie Cobbs <arc...@dellroad.org>
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 02:16:49 GMT
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

Mime
View raw message