RFR: 8365594: Strengthen Universe klasses asserts to catch bootstrapping errors earlier
Albert Mingkun Yang
ayang at openjdk.org
Mon Aug 18 14:49:17 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`
Marked as reviewed by ayang (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/26797#pullrequestreview-3128698951
More information about the hotspot-dev
mailing list