RFR: 8261744: Implement CharsetDecoder ASCII and latin-1 fast-paths [v2]
Alan Bateman
alanb at openjdk.java.net
Fri Feb 19 07:49:51 UTC 2021
On Thu, 18 Feb 2021 23:16:54 GMT, Claes Redestad <redestad at 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
More information about the core-libs-dev
mailing list