This patch reverts the use of `ByteArrayLittleEndian` in `StringLatin1`. This use is the cause of a small (~1.5ms) startup regression in 22-b15. While a manageable startup regression in and of itself, the use of `VarHandles` in core utility classes brings an increased risk of bootstrap circularity issues, for example disqualifying the use of things like `Integers.toString` in some places.
Reverting this partially rolls back the performance improvement gained by JDK-8310929. It seems reasonable that the compiler can be enhanced to gain that loss back. ------------- Commit messages: - Minor startup regression in 22-b15 due JDK-8310929 Changes: https://git.openjdk.org/jdk/pull/15836/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15836&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8316582 Stats: 31 lines in 2 files changed: 9 ins; 4 del; 18 mod Patch: https://git.openjdk.org/jdk/pull/15836.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15836/head:pull/15836 PR: https://git.openjdk.org/jdk/pull/15836