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

Toolkit class should not disable JIT compiler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • None
    • client-libs
    • None

      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();

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

              Created:
              Updated:
              Resolved: