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

Optimize calls to SystemDictionaryShared::define_shared_package for classpath

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b05

      Description

      A related RFE JDK-8241815 handles the module image case.
      This RFE is for handling the jar in the shared classpath case.

      For the shared classpath case, the SystemDictionaryShared::define_shared_package calls up to java BuiltInClassLoader::defineOrCheckPackage. It is sufficient to call define_shared_package once per element in the classpath.

      An idea is to add an int field to PackageEntry. Use the n-th bit to indicate that we have checked the n-th element in the shared classpath. This would handle up to 32 elements in the classpath.

        Attachments

          Activity

            People

            Assignee:
            ccheung Calvin Cheung
            Reporter:
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: