On Fri, 25 Jun 2021 13:40:54 GMT, Yi Yang <yy...@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

Reply via email to