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

Avoid calling is_shared_class_visible() in SystemDictionary::load_shared_class()

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 15
    • 15
    • hotspot
    • b27

    Backports

      Description

        http://hg.openjdk.java.net/jdk/jdk/file/7ef41e83066b/src/hotspot/share/classfile/systemDictionary.cpp#l1268

        is_shared_class_visible() might be time consuming because it needs to look up PackageEntry and ModuleEntry. However, if we are running the JVM without any of the following:

            bootclasspath append
            --limit-modules
            --upgrade-module-path

        is_shared_class_visible() will always return true, so we can skip the call to improve start-up time.

        Attachments

          Issue Links

            Activity

              People

                minqi Yumin Qi
                iklam Ioi Lam
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: