Integrated: 8365594: Strengthen Universe klasses asserts to catch bootstrapping errors earlier
Aleksey Shipilev
shade at openjdk.org
Mon Aug 18 15:54:20 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`
This pull request has now been integrated.
Changeset: c9ecedd2
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c9ecedd2260c7f0114227aafc7f7f85e7c4c07c5
Stats: 14 lines in 2 files changed: 9 ins; 1 del; 4 mod
8365594: Strengthen Universe klasses asserts to catch bootstrapping errors earlier
Reviewed-by: coleenp, ayang
-------------
PR: https://git.openjdk.org/jdk/pull/26797
More information about the hotspot-dev
mailing list