RFR: 8365594: Strengthen Universe klasses asserts to catch bootstrapping errors earlier
Coleen Phillimore
coleenp at openjdk.org
Fri Aug 15 18:20:11 UTC 2025
On Fri, 15 Aug 2025 10:43:55 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> I am chasing a Shenandoah + CDS bootstrapping problem, where Shenandoah tries to insert the filler at the time when Universe is not yet initialized. It currently fails rather cryptically on attempt to store `null` class. We could really use an assert on accessing various `Klass` definitions in Universe.
>
> We already do this for `TypeArrayKlass-es`, so this change would cover `fillerArrayKlass` and `objectArrayKlass`.
>
> Additional testing:
> - [x] Shenandoah + CDS reproducer crashes reliably
> - [x] Linux AArch64 server fastdebug, `all`
Looks good.
-------------
Marked as reviewed by coleenp (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/26797#pullrequestreview-3124761877
More information about the hotspot-dev
mailing list