shared "value" in java.lang.StringBuilder

Jeroen Frijters jeroen at sumatra.nl
Tue Nov 12 07:33:39 UTC 2013


John Rose wrote:
> I think the next interesting version of String will mix header and body
> together in a hybrid layout, with private char (or byte) elements and a
> few instance variables at the beginning of the layout.

It would be good to prepare for this by modifying the JNI spec to explicitly disallow AllocObject (and subsequent constructor invocations) on String.

Regards,
Jeroen




More information about the core-libs-dev mailing list