8304484: CDS dynamic dumping incorrectly leads to "Error occurred during initialization of VM"

Reviewed-by: ccheung, iklam
This commit is contained in:
Matias Saavedra Silva 2024-07-08 14:04:32 +00:00
parent cec222e460
commit be3676f6bb

View File

@ -470,7 +470,7 @@ bool ClassPathImageEntry::is_modules_image() const {
void ClassLoader::exit_with_path_failure(const char* error, const char* message) { void ClassLoader::exit_with_path_failure(const char* error, const char* message) {
assert(CDSConfig::is_dumping_archive(), "sanity"); assert(CDSConfig::is_dumping_archive(), "sanity");
tty->print_cr("Hint: enable -Xlog:class+path=info to diagnose the failure"); tty->print_cr("Hint: enable -Xlog:class+path=info to diagnose the failure");
vm_exit_during_initialization(error, message); vm_exit_during_cds_dumping(error, message);
} }
#endif #endif