[lworld] Integrated: 8376890: [lworld] Compiler replay crashes when class cannot be loaded after JDK-8375548

Tobias Hartmann thartmann at openjdk.org
Mon Feb 2 11:55:14 UTC 2026


On Mon, 2 Feb 2026 11:48:14 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

> [JDK-8375548](https://bugs.openjdk.org/browse/JDK-8375548) added support for compiler replay but only tested with cases where classes can actually be loaded. When some classes cannot be loaded (for example, due to missing class files), we crash with a null pointer when run with `+ReplayIgnoreInitErrors`: `parse_klass()` returns `null` for non-loadable classes. Then, we access it with `k->is_objArray_klass()` without checking for null and we crash. This patch adds a simple null-check to fix the problem.
> 
> Thanks,
> Christian

Looks good and trivial.

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

Marked as reviewed by thartmann (Committer).

PR Review: https://git.openjdk.org/valhalla/pull/2010#pullrequestreview-3738936386


More information about the valhalla-dev mailing list