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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 15
    • Affects Version/s: 15
    • Component/s: 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.

              Assignee:
              Yumin Qi
              Reporter:
              Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: