8009835: Only produce a warning when -Xshare:auto is explicitly requested
The minimal JVM is printing a warning message for default settings when it should quitely ignore them. Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
a68c69fd65
commit
0f54c50638
@ -3262,7 +3262,7 @@ jint Arguments::parse(const JavaVMInitArgs* 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 (UseSharedSpaces || PrintSharedSpaces) {
|
if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) || PrintSharedSpaces) {
|
||||||
warning("Shared spaces are not supported in this VM");
|
warning("Shared spaces are not supported in this VM");
|
||||||
FLAG_SET_DEFAULT(UseSharedSpaces, false);
|
FLAG_SET_DEFAULT(UseSharedSpaces, false);
|
||||||
FLAG_SET_DEFAULT(PrintSharedSpaces, false);
|
FLAG_SET_DEFAULT(PrintSharedSpaces, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user