RFR: 8267556: Enhance class paths check during runtime

Ioi Lam iklam at openjdk.java.net
Wed Jun 9 20:56:16 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.

LGTM

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

Marked as reviewed by iklam (Reviewer).

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


More information about the hotspot-runtime-dev mailing list