Toolkit class should not disable JIT compiler

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: 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();

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

              Created:
              Updated:
              Resolved: