mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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
1 changed files with 5 additions and 0 deletions
|
@ -3968,6 +3968,11 @@ jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) {
|
||||||
"Shared spaces are not supported in this VM\n");
|
"Shared spaces are not supported in this VM\n");
|
||||||
return JNI_ERR;
|
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)) ||
|
if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) ||
|
||||||
log_is_enabled(Info, cds)) {
|
log_is_enabled(Info, cds)) {
|
||||||
warning("Shared spaces are not supported in this VM");
|
warning("Shared spaces are not supported in this VM");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue