Tool to peek into CDS archive
Ashutosh Mehra
asmehra at redhat.com
Wed Jul 27 21:25:19 UTC 2022
Hi Calvin,
Thanks for the option. "-XX:+PrintSharedArchiveAndExit" is what I was
looking for.
btw it looks like the PrintSharedDictionary flag is redundant, I guess
PrintSharedArchiveAndExit already covers it.
I don't see PrintSharedDictionary being checked anywhere in the code base.
Regards,
Ashutosh Mehra
On Wed, Jul 27, 2022 at 5:02 PM <calvin.cheung at oracle.com> wrote:
> Hi Ashutosh,
>
> You can list the contents of the classes.jsa by doing:
>
> java -XX:+PrintSharedArchiveAndExit -XX:+PrintSharedDictionary
>
> If you have your own CDS archive, you can specify it using the
> -XX:SharedArchiveFile option as follows:
>
> java -XX:+PrintSharedArchiveAndExit -XX:+PrintSharedDictionary
> -XX:SharedArchiveFile=<CDS archive>
>
> Calvin
>
>
> On 7/27/22 10:48 AM, Ashutosh Mehra wrote:
> > Hi,
> > I am wondering if there is any way to peek into the CDS archive and
> > look into its contents. I believe a tool that dumps the list of
> > classes in the archive would be really helpful.
> >
> > Regards,
> > Ashutosh Mehra
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-dev/attachments/20220727/92d9b55a/attachment.htm>
More information about the hotspot-dev
mailing list