8232757: VM fails to report an error for DumpLoadedClassList when cds is disabled
Reviewed-by: iklam, dholmes
This commit is contained in:
parent
750eab1ecc
commit
8bdffc5f7e
@ -3968,6 +3968,11 @@ jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) {
|
||||
"Shared spaces are not supported in this VM\n");
|
||||
return JNI_ERR;
|
||||
}
|
||||
if (DumpLoadedClassList != NULL) {
|
||||
jio_fprintf(defaultStream::error_stream(),
|
||||
"DumpLoadedClassList is not supported in this VM\n");
|
||||
return JNI_ERR;
|
||||
}
|
||||
if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) ||
|
||||
log_is_enabled(Info, cds)) {
|
||||
warning("Shared spaces are not supported in this VM");
|
||||
|
Loading…
Reference in New Issue
Block a user