提交 2b1402fe 编写于 作者: J jprovino

8009835: Only produce a warning when -Xshare:auto is explicitly requested

Summary: The minimal JVM is printing a warning message for default settings when it should quitely ignore them.
Reviewed-by: coleenp, dholmes
上级 00eed51a
......@@ -3262,7 +3262,7 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
"Shared spaces are not supported in this VM\n");
return JNI_ERR;
}
if (UseSharedSpaces || PrintSharedSpaces) {
if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) || PrintSharedSpaces) {
warning("Shared spaces are not supported in this VM");
FLAG_SET_DEFAULT(UseSharedSpaces, false);
FLAG_SET_DEFAULT(PrintSharedSpaces, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册