< prev index next >

src/share/vm/runtime/arguments.cpp

Print this page

        

@@ -3198,13 +3198,10 @@
         return JNI_EINVAL;
       }
       if (FLAG_SET_CMDLINE(bool, PrintGC, true) != Flag::SUCCESS) {
         return JNI_EINVAL;
       }
-      if (FLAG_SET_CMDLINE(bool, PrintGCTimeStamps, true) != Flag::SUCCESS) {
-        return JNI_EINVAL;
-      }
     } else if (match_option(option, "-Xlog", &tail)) {
       bool ret = false;
       if (strcmp(tail, ":help") == 0) {
         LogConfiguration::print_command_line_help(defaultStream::output_stream());
         vm_exit(0);

@@ -4241,13 +4238,17 @@
       warning("Forcing ScavengeRootsInCode non-zero");
     }
     ScavengeRootsInCode = 1;
   }
 
+  if (PrintGC) {
+    warning("-XX:+PrintGC not supported in this build. Will turn it off.");
+    PrintGC = false;
+  }
   if (PrintGCDetails) {
-    // Turn on -verbose:gc options as well
-    PrintGC = true;
+    warning("-XX:+PrintGCDetails not supported in this build. Will turn it off.");
+    PrintGCDetails = false;
   }
 
   // Set object alignment values.
   set_object_alignment();
 
< prev index next >