On Mon, 2 Feb 2026 11:48:14 GMT, Christian Hagedorn <[email protected]> 
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

This pull request has now been integrated.

Changeset: 55c80fed
Author:    Christian Hagedorn <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/55c80fedfcee5d3b113cdf38d64c1bcac8632c9a
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

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

Reviewed-by: thartmann

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

PR: https://git.openjdk.org/valhalla/pull/2010

Reply via email to