RFR: 8365594: Strengthen Universe klasses asserts to catch bootstrapping errors earlier

Aleksey Shipilev shade at openjdk.org
Mon Aug 18 08:18:13 UTC 2025


On Fri, 15 Aug 2025 18:18:02 GMT, Coleen Phillimore <coleenp 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.

Thank you, @coleenp! I think I need another Review to integrate.

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

PR Comment: https://git.openjdk.org/jdk/pull/26797#issuecomment-3195607006


More information about the hotspot-dev mailing list