6745361: Add -XX options to prevent stdout/stderr pollution using fastdebug/debug bootjdk
authorohair
Tue, 31 Mar 2009 16:11:09 -0700
changeset 2399 8152d21ae245
parent 2398 b0e6622ee72e
child 2400 0d7007d99b0f
6745361: Add -XX options to prevent stdout/stderr pollution using fastdebug/debug bootjdk Reviewed-by: tbell
jdk/make/common/shared/Defs-java.gmk
--- a/jdk/make/common/shared/Defs-java.gmk	Tue Mar 31 16:10:31 2009 -0700
+++ b/jdk/make/common/shared/Defs-java.gmk	Tue Mar 31 16:11:09 2009 -0700
@@ -59,7 +59,15 @@
     ADD_CLIENT_VM_OPTION = true
   endif
 endif
-JAVA_JVM_FLAGS =
+
+# Options for hotspot to turn off printing of options with fastdebug version
+#   and creating the hotspot.log file.
+JAVA_HOTSPOT_DISABLE_PRINT_VMOPTIONS = \
+   -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput
+
+# JVM options
+JAVA_JVM_FLAGS = $(JAVA_HOTSPOT_DISABLE_PRINT_VMOPTIONS)
+
 ifeq ($(ADD_CLIENT_VM_OPTION), true)
   JAVA_JVM_FLAGS += -client
 endif