RFR: 8356308: Assert with -Xlog:class+path when classpath has an empty element
David Holmes
dholmes at openjdk.org
Thu May 22 09:50:52 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 fix is simple:
>
>
> - if (do_substitute) {
> + if (do_substitute && remove_prefix_len > 0) {
>
>
> I also improved the logs to help debugging classpath mismatches when using the AOT cache.
This sounds like a bug in `-cp` parsing to me!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25372#issuecomment-2900591815
More information about the hotspot-runtime-dev
mailing list