diff src/share/vm/runtime/arguments.cpp @ 6064:9d679effd28c

7166894: Add gc cause to GC logging for all collectors Reviewed-by: mgerdin, johnc
author brutisso
date Tue, 15 May 2012 10:25:06 +0200
parents f3a4ee95783b
children cdeda3fd141e
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Tue May 15 22:26:37 2012 +0200
+++ b/src/share/vm/runtime/arguments.cpp	Tue May 15 10:25:06 2012 +0200
@@ -3092,6 +3092,14 @@
     PrintGC = true;
   }
 
+  if (!JDK_Version::is_gte_jdk18x_version()) {
+    // To avoid changing the log format for 7 updates this flag is only
+    // true by default in JDK8 and above.
+    if (FLAG_IS_DEFAULT(PrintGCCause)) {
+      FLAG_SET_DEFAULT(PrintGCCause, false);
+    }
+  }
+
   // Set object alignment values.
   set_object_alignment();