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

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

XMLWordPrintable

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

        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.

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

                Created:
                Updated:
                Resolved: