8230385: [cds] No message is logged when shared image cannot be used due to mismatched configuration

Reviewed-by: stuefe, dholmes, ccheung
This commit is contained in:
Ioi Lam 2019-11-29 14:11:50 -08:00
parent b3ea416824
commit b08944dd96

View File

@ -1645,6 +1645,7 @@ static void no_shared_spaces(const char* message) {
"Class data sharing is inconsistent with other specified options.\n");
vm_exit_during_initialization("Unable to use shared archive", message);
} else {
log_info(cds)("Unable to use shared archive: %s", message);
FLAG_SET_DEFAULT(UseSharedSpaces, false);
}
}