Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8201179

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

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: