Call ClassLoader.getResourceAsByteArray only for multi-release jar

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 24
    • Component/s: hotspot
    • b03

      ClassLoader.getResourceAsByteArray() was added for getting a versioned entry from a multi-release jar in JDK-8343427.

      During CDS dump time when a ClassPathEntry is being created and a jar manifest is being processed, we can check if a jar file is a multi-release jar and store the info in the ClassPathEntry.

      During runtime, only call ClassLoader.getResourceAsByteArray() if the jar file is a multi-release jar. This should reduce the number of java calls.

            Assignee:
            Calvin Cheung (Inactive)
            Reporter:
            Calvin Cheung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: