Integrated: 8345936: Call ClassLoader.getResourceAsByteArray only for multi-release jar

Calvin Cheung ccheung at openjdk.org
Fri Dec 13 19:22:41 UTC 2024


On Thu, 12 Dec 2024 00:10:39 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.

This pull request has now been integrated.

Changeset: f647d4d9
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f647d4d908a6760c116a3a762c4dc09e3ed95796
Stats:     25 lines in 5 files changed: 16 ins; 0 del; 9 mod

8345936: Call ClassLoader.getResourceAsByteArray only for multi-release jar

Reviewed-by: iklam, dholmes

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

PR: https://git.openjdk.org/jdk/pull/22696


More information about the hotspot-runtime-dev mailing list