Integrated: 8312181: CDS dynamic dump crashes when verifying unlinked class from static archive

Calvin Cheung ccheung at openjdk.org
Tue Aug 1 20:35:09 UTC 2023


On Fri, 28 Jul 2023 21:20:56 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> During CDS dynamic dump, VM crashes due to `assert(!k->is_shared()) failed` while linking an old class (class file version <= 49) loaded from the static archive. The fix mostly adjusts some assert statements based on static vs dynamic dumping. In `MetaspaceShared::try_link_class`, if linking of a shared class during dynamic dump has failed, the `shared_loading_failed` flag will be set to avoid linking the same class again.
> 
> Passed tiers 1 - 4 testing.

This pull request has now been integrated.

Changeset: bf707775
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/bf7077752aa6676b0a5a7f799b6823f38fbd8196
Stats:     166 lines in 5 files changed: 159 ins; 3 del; 4 mod

8312181: CDS dynamic dump crashes when verifying unlinked class from static archive

Reviewed-by: iklam, matsaave

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

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


More information about the hotspot-runtime-dev mailing list