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
Hi Weldon,
Weldon Washburn wrote:
Archie,
I am working on kernel_path String.java.
The only VM specific method in String currently is intern. However,
inclusion of this method in the kernel forces the VM vendor to implement
the rest of the String class, which has no further VM specific
Tim Ellison wrote:
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.
Of course :-) JCHEVM handles this correctly.
-Archie
For the initial hello world phase of Harmony Class Library on
JCHEVM, I wrote a real stupid, simple String intern in java. It can
be replaced later with a more sophisticated version.
Question -- does it make sense to include a stupid, simple
String.intern() in the kernel class to make it even
Weldon Washburn wrote:
Question -- does it make sense to include a stupid, simple
String.intern() in the kernel class to make it even easier and more
convenient for someone trying to graft Harmony Class Libraries to a
new JVM?
Sure, we can add it to the KERNEL module stubs so people can
On 2/14/06, Tim Ellison [EMAIL PROTECTED] wrote:
Weldon Washburn wrote:
Question -- does it make sense to include a stupid, simple
String.intern() in the kernel class to make it even easier and more
convenient for someone trying to graft Harmony Class Libraries to a
new JVM?
Sure, we
could it throw an Error rather than while(true)? Much easier to debug... :)
Weldon Washburn wrote:
On 2/14/06, Tim Ellison [EMAIL PROTECTED] wrote:
Weldon Washburn wrote:
Question -- does it make sense to include a stupid, simple
String.intern() in the kernel class to make it even easier and
Archie,
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
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