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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: