On Thu, 18 Feb 2021 23:16:54 GMT, Claes Redestad <redes...@openjdk.org> wrote:

> Turns out the native code called by `SystemProps.initProperties();` can 
> initialize a `CharsetDecoder` if `sun.jnu.encoding` is set to certain values, 
> and this tripped up the initialization to cause `getJavaLangAccess` to be 
> called before `setJavaLangAccess`. By moving `setJavaLangAccess` to the very 
> start of `initPhase1` we avoid this possibility, and limit churn.

I assume this is tests running with -Dfile.encoding. I can go along with moving 
setJavaLangAccess to the start of initPhase1. I'll do another pass over the 
updated patch today. Good work!

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

PR: https://git.openjdk.java.net/jdk/pull/2574

Reply via email to