RFR: 8269384: Determine native byte order for StringUTF16 via ByteOrder
Yi Yang
yyang at openjdk.java.net
Tue Jun 29 02:14:01 UTC 2021
On Fri, 25 Jun 2021 13:40:54 GMT, Yi Yang <yyang at openjdk.org> wrote:
> Prefer using ByteOrder to compute byte order for StringUTF16 to determining byte order by native method StringUTF16.isBigEndian.
Thanks for the detailed clarification!
The purpose of this PR is to skip the native call and use ByteOrder. Now I'm convinced that we should not change the initialization order casually, this will break some "future code" and make UnsafeConstants unable to use String.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4596
More information about the core-libs-dev
mailing list