RFR: 8217442: Optimize native accesses to String.value

Claes Redestad claes.redestad at oracle.com
Mon Jan 21 22:07:28 UTC 2019


Hi David,

On 2019-01-21 21:54, David Holmes wrote:
> What if we refactored so that
> 
> java_lang_String::length(oop java_string, typeArrayOop value)
> 
> became
> 
> java_lang_String::length(typeArrayOop value, bool isLatin1)
> 
> would that also achieve the goal while presenting (IMHO) a cleaner API?

doing so would get rid of the contorted asserts at least, and seems to
be performance neutral on all operations:

http://cr.openjdk.java.net/~redestad/8217442/open.02/

Re-running tests.

/Claes


More information about the hotspot-runtime-dev mailing list