8009835: Only produce a warning when -Xshare:auto is explicitly requested
authorjprovino
Tue, 12 Mar 2013 00:02:16 -0400
changeset 15940 601d4955fa75
parent 15939 281079838aa5
child 15941 a3842b1101a2
child 16394 b5940f63d436
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
hotspot/src/share/vm/runtime/arguments.cpp
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Fri Mar 08 12:35:18 2013 -0500
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Tue Mar 12 00:02:16 2013 -0400
@@ -3262,7 +3262,7 @@
       "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);