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

Toolkit class should not disable JIT compiler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None

      Description

      Historically toolkit a class switches off JIT compilation. It is necessary to check why we do it, and how performance is affected.
      See java.awt.Toolki.java
          public static synchronized Toolkit getDefaultToolkit() {
      ........................
                      // We disable the JIT during toolkit initialization. This
                      // tends to touch lots of classes that aren't needed again
                      // later and therefore JITing is counter-productiive.
                      java.lang.Compiler.disable();
      .......................
                      // Make sure to always re-enable the JIT.
                      java.lang.Compiler.enable();

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serb Sergey Bylokhov
              Reporter:
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: