RFR: 8345936: Call ClassLoader.getResourceAsByteArray only for multi-release jar
Calvin Cheung
ccheung at openjdk.org
Thu Dec 12 00:15:43 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.
-------------
Commit messages:
- 8345936: Call ClassLoader.getResourceAsByteArray only for multi-release jar
Changes: https://git.openjdk.org/jdk/pull/22696/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22696&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8345936
Stats: 30 lines in 6 files changed: 17 ins; 0 del; 13 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