Integrated: 8267556: Enhance class paths check during runtime

Calvin Cheung ccheung at openjdk.java.net
Thu Jun 10 19:53:59 UTC 2021


On Mon, 7 Jun 2021 23:09:37 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> During CDS dump time, if an entry in the classpath isn't a jar file, the entry will not be recorded in the archive header. However, during runtime, it attempts to compare all the entries in the classpath against the entries from the archive header. The loading of CDS archive would fail if there exists an non-jar entry in the classpath.
> 
> The proposed patch addresses the above issue. It adds a `bool _has_non_jar_in_classpath` to indicate if a non-jar entry has been encountered during dump time in the archive header. This is to minimize the performance impact for the usual cases where there is no non-jar entry in the classpath.
> 
> - [x] mach5 tiers 1 - 4 (including the new test)
> 
> This is targeted for JDK18.

This pull request has now been integrated.

Changeset: 4fd2a149
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/4fd2a149977b05eb6e4b28d147ab9c043a7934ec
Stats:     101 lines in 7 files changed: 95 ins; 1 del; 5 mod

8267556: Enhance class paths check during runtime

Reviewed-by: minqi, iklam

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

PR: https://git.openjdk.java.net/jdk/pull/4402


More information about the hotspot-runtime-dev mailing list