Integrated: 8327495: Print more warning with -Xshare:auto when CDS fails to use archive

Calvin Cheung ccheung at openjdk.org
Mon May 5 19:38:52 UTC 2025


On Fri, 25 Apr 2025 21:43:19 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> Before this change, if the `-Xshare:auto` is specified with a CDS archive, the user won't see the following error message when the archive has failed to load:
> `An error has occurred while processing the the shared archive file.`
> This change will print the above error message if the `-Xshare:auto` is specified and the archive is not the default one.
> Several existing `log_ino(cds)()` calls have been changed to calling the new function `MetaspaceShared::report_loading_error()`. Also modified couple of tests to check the above error message is printed.
> 
> Passed tiers 1 - 3 testing.

This pull request has now been integrated.

Changeset: 620f8167
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/620f81671ae721c5e40291f396bbc7707d9d6bcc
Stats:     103 lines in 12 files changed: 53 ins; 4 del; 46 mod

8327495: Print more warning with -Xshare:auto when CDS fails to use archive

Reviewed-by: iklam, matsaave

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

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


More information about the hotspot-runtime-dev mailing list