RFR: 8328592: hprof tests fail with -XX:-CompactStrings [v2]

Aleksey Shipilev shade at openjdk.org
Wed Mar 20 17:19:35 UTC 2024


On Wed, 20 Mar 2024 14:46:09 GMT, Paul Hohensee <phh at openjdk.org> wrote:

> Are we guaranteed that non-compact string char component bytes are stored in little-endian order?

No, I don't think we are guaranteed any particular endianness, argh. The new patch follows what `StringUTF16` does: https://github.com/openjdk/jdk/blob/4e83f4cfc779e39cca0070b5729a508aeaa74654/src/java.base/share/classes/java/lang/StringUTF16.java#L1663-L1673

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18394#issuecomment-2010124301


More information about the hotspot-runtime-dev mailing list