RFR: 8309753: Include array classes in the output of -XX:+PrintSharedArchiveAndExit

Ioi Lam iklam at openjdk.org
Sun Jun 11 17:24:28 UTC 2023


On Fri, 9 Jun 2023 22:04:11 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> Please review this simple enhancement for including the array classes names in the output of -XX:+PrintArchiveAndExit.
> 
> Before fix (portion of the output):
> 
>  657: java.lang.Object boot_loader
>  658: java.lang.Character$CharacterCache boot_loader
>  659: sun.nio.fs.LinuxFileSystem boot_loader
>  660: java.lang.ThreadLocal boot_loader
>  661: java.util.TreeSet boot_loader
>  662: java.lang.invoke.LambdaForm$Kind boot_loader
> 
> 
> After fix:
> 
>  657: java.lang.Object boot_loader
>       - array: [Ljava.lang.Object;
>       - array: [[Ljava.lang.Object;
>  658: java.lang.Character$CharacterCache boot_loader
>  659: sun.nio.fs.LinuxFileSystem boot_loader
>  660: java.lang.ThreadLocal boot_loader
>  661: java.util.TreeSet boot_loader
>  662: java.lang.invoke.LambdaForm$Kind boot_loader
>       - array: [Ljava.lang.invoke.LambdaForm$Kind;
> 
> 
> Passed tier1 testing.

Looks good. Maybe we should also add the array classes to the `-Xlog:cds+class` output when dumping the archive?

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

Marked as reviewed by iklam (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14403#pullrequestreview-1473758497


More information about the hotspot-runtime-dev mailing list