-
Notifications
You must be signed in to change notification settings - Fork 6k
8359423: Improve error message in case of missing jsa shared archive #25846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
@@ -1385,7 +1385,7 @@ void MetaspaceShared::initialize_runtime_shared_and_meta_spaces() { | |||
delete dynamic_mapinfo; | |||
} | |||
if (RequireSharedSpaces && has_failed) { | |||
MetaspaceShared::unrecoverable_loading_error("Unable to map shared spaces"); | |||
MetaspaceShared::unrecoverable_loading_error("Unable to map shared spaces, but they were required"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want the message to be more specific, you might need to add whether the failed loading was dynamic or static.
@@ -1271,7 +1271,7 @@ void MetaspaceShared::unrecoverable_loading_error(const char* message) { | |||
} else if (CDSConfig::new_aot_flags_used()) { | |||
vm_exit_during_initialization("Unable to use AOT cache.", nullptr); | |||
} else { | |||
vm_exit_during_initialization("Unable to use shared archive.", nullptr); | |||
vm_exit_during_initialization("Unable to use shared archive (unrecoverable archive loading error).", nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who not to use message here instead of 'unrecoverable archive loading error'? The default message is 'unrecoverable error'. The default message can be updated to 'unrecoverable archive loading error'.
In case we use
-Xshare:on
with additional flags (regarding coh or coops) and we have the corresponding jsa archive not present,we get this message/error :
The error message could be a little improved, e.g. telling what jsa file is not present .
For example
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25846/head:pull/25846
$ git checkout pull/25846
Update a local copy of the PR:
$ git checkout pull/25846
$ git pull https://git.openjdk.org/jdk.git pull/25846/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25846
View PR using the GUI difftool:
$ git pr show -t 25846
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25846.diff
Using Webrev
Link to Webrev Comment