6745361: Add -XX options to prevent stdout/stderr pollution using fastdebug/debug bootjdk
Reviewed-by: tbell
--- 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