Integrated: 8279009: CDS crashes when the source of an InstanceKlass is NULL

Yumin Qi minqi at openjdk.java.net
Thu Jan 20 17:58:53 UTC 2022


On Thu, 13 Jan 2022 22:26:24 GMT, Yumin Qi <minqi at openjdk.org> wrote:

> Please review
>   When user combine -XX:ArchiveClassesAtExit and -XX:DumpLoadedClassList, vm will generate shared archive at exit mean while dump class list to a file, it will encounter null source when lambda form invoker holder classes are regenerated which have no source.  It failed to output the NULL source.
>    The fix is simply add ing check if the source exists. 
>    For unregistered classes loaded from shared space, they should be filtered out since the source are not recorded in shared space.
> 
>    Tests: tier2,tier2.tier3,tier4
> 
> Thanks
> Yumin

This pull request has now been integrated.

Changeset: d48279b0
Author:    Yumin Qi <minqi at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/d48279b0bf9ee9d18ac764776a655c44fa020509
Stats:     453 lines in 5 files changed: 440 ins; 6 del; 7 mod

8279009: CDS crashes when the source of an InstanceKlass is NULL

Reviewed-by: iklam, ccheung

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

PR: https://git.openjdk.java.net/jdk/pull/7072


More information about the hotspot-runtime-dev mailing list