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

Call ClassLoader.getResourceAsByteArray only for multi-release jar

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 24
    • 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.

            ccheung Calvin Cheung
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: