From 0f54c506382f5c2826660a668e3199fba78acc79 Mon Sep 17 00:00:00 2001 From: Joseph Provino Date: Tue, 12 Mar 2013 00:02:16 -0400 Subject: [PATCH] 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 --- hotspot/src/share/vm/runtime/arguments.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/runtime/arguments.cpp b/hotspot/src/share/vm/runtime/arguments.cpp index 554d6a75433..a74e62d6b95 100644 --- a/hotspot/src/share/vm/runtime/arguments.cpp +++ b/hotspot/src/share/vm/runtime/arguments.cpp @@ -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);