RFR: 8345936: Call ClassLoader.getResourceAsByteArray only for multi-release jar [v2]

Ioi Lam iklam at openjdk.org
Fri Dec 13 18:21:36 UTC 2024


On Thu, 12 Dec 2024 07:30:49 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

>> This patch stores whether a jar is multi-release in the SharedClassPathEntry during CDS dump time.
>> At runtime, it only calls ClassLoader.getResourceAsByteArray if the jar is a multi-release jar.
>> As a result, the number of java calls is reduced.
>> 
>> Passed tiers 1, 3, 4 testing.
>
> Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   @iklam comment

LGTM

-------------

Marked as reviewed by iklam (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/22696#pullrequestreview-2502880163


More information about the hotspot-runtime-dev mailing list