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

Christian Hagedorn chagedorn at openjdk.org
Mon Feb 2 11:55:15 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

Thanks Tobias for your quick review!

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

PR Comment: https://git.openjdk.org/valhalla/pull/2010#issuecomment-3834664371


More information about the valhalla-dev mailing list