Integrated: 8353298: AOT cache creation asserts with _array_klasses in an unregistered InstanceKlass

Ioi Lam iklam at openjdk.org
Wed Apr 23 21:29:02 UTC 2025


On Thu, 17 Apr 2025 05:36:41 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> The assert in `Klass::remove_java_mirror()` is too narrow. When creating the AOT cache, it's possible to see two types of Klasses that do not have a Java mirror:
> 
> - Unregistered classes (a cached class to be loaded by a custom class loader in the production run)
> - An array type of an unregistered class
> 
> I have relaxed the assert to accept both conditions

This pull request has now been integrated.

Changeset: 88e0b00a
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/88e0b00a46301ac14fb0b1c0d2717e80ba4b1dc0
Stats:     116 lines in 2 files changed: 114 ins; 0 del; 2 mod

8353298: AOT cache creation asserts with _array_klasses in an unregistered InstanceKlass

Reviewed-by: ccheung, kvn

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

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


More information about the hotspot-dev mailing list