hotspot/src/share/vm/runtime/arguments.cpp
changeset 4590 b24180e84c64
parent 4578 8c2778d19ffa
parent 4584 e2a449e8cc6f
child 4736 e091227926da
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Sat Jan 09 09:01:41 2010 -0800
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Tue Jan 12 13:54:40 2010 -0800
@@ -2649,6 +2649,10 @@
     if (match_option(option, "-XX:-IgnoreUnrecognizedVMOptions", &tail)) {
       IgnoreUnrecognizedVMOptions = false;
     }
+    if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) {
+      CommandLineFlags::printFlags();
+      vm_exit(0);
+    }
   }
 
   if (IgnoreUnrecognizedVMOptions) {
@@ -2806,15 +2810,18 @@
   }
 #endif
 
+  if (PrintAssembly && FLAG_IS_DEFAULT(DebugNonSafepoints)) {
+    warning("PrintAssembly is enabled; turning on DebugNonSafepoints to gain additional output");
+    DebugNonSafepoints = true;
+  }
+
   if (PrintCommandLineFlags) {
     CommandLineFlags::printSetFlags();
   }
 
-#ifdef ASSERT
   if (PrintFlagsFinal) {
     CommandLineFlags::printFlags();
   }
-#endif
 
   return JNI_OK;
 }