RFR: 8345936: Call ClassLoader.getResourceAsByteArray only for multi-release jar [v2]
Calvin Cheung
ccheung at openjdk.org
Thu Dec 12 07:30:49 UTC 2024
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/22696/files
- new: https://git.openjdk.org/jdk/pull/22696/files/f40fa76f..518c735c
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=22696&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=22696&range=00-01
Stats: 11 lines in 3 files changed: 2 ins; 3 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/22696.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22696/head:pull/22696
PR: https://git.openjdk.org/jdk/pull/22696
More information about the hotspot-runtime-dev
mailing list