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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • 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.

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

              Created:
              Updated:
              Resolved: