Regression due loading java.nio.charset.StandardCharsets during bootstrap

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 11
    • Component/s: core-libs

      JDK-8200310 cleaned up java.nio.charset.StandardCharsets to not use Charset.forName, but also removed the optimization to have unconditionally loaded charsets set up static INSTANCE objects, which means that many systems the java.nio.charset.StandardCharsets will be initialized in System.initPhase1. This should be avoided since at this point the VM is just booting up and any code executed delays initialization of JIT etc.

            Assignee:
            Claes Redestad
            Reporter:
            Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: