Integrated: 8356308: Assert with -Xlog:class+path when classpath has an empty element

Ioi Lam iklam at openjdk.org
Mon Jun 2 16:55:06 UTC 2025


On Wed, 21 May 2025 21:28:16 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> When the classpath has an element that's the empty string (e.g., `java  -Xlog:class+path -cp :abc ...`, where the first element is `""` and the second element is `"abc"`), the VM asserts.
> 
> The bug happens because `ClasspathStream` does not correctly omit the empty elements at the beginning of the classpath.
> 
> I also improved the logs to help debugging classpath mismatches when using the AOT cache.

This pull request has now been integrated.

Changeset: bce2bd24
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/bce2bd24ef64e71d895bbf4d91693b30a285746b
Stats:     149 lines in 7 files changed: 114 ins; 11 del; 24 mod

8356308: Assert with -Xlog:class+path when classpath has an empty element

Reviewed-by: dholmes, ccheung

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

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


More information about the hotspot-runtime-dev mailing list