RFR: 8345936: Call ClassLoader.getResourceAsByteArray only for multi-release jar [v2]
David Holmes
dholmes at openjdk.org
Thu Dec 12 07:53:35 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
Seems reasonable.
Thanks
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22696#pullrequestreview-2498146639
More information about the hotspot-runtime-dev
mailing list