hotspot/src/share/vm/runtime/globals.hpp
changeset 9990 c8683968c01b
parent 9968 d46e7bd87c27
child 10002 2d83be3a0927
--- a/hotspot/src/share/vm/runtime/globals.hpp	Wed Jun 08 21:48:38 2011 -0400
+++ b/hotspot/src/share/vm/runtime/globals.hpp	Fri Jun 10 15:08:36 2011 -0700
@@ -2332,6 +2332,20 @@
           "Print diagnostic message when GC is stalled"                     \
           "by JNI critical section")                                        \
                                                                             \
+  /* GC log rotation setting */                                             \
+                                                                            \
+  product(bool, UseGCLogFileRotation, false,                                \
+          "Prevent large gclog file for long running app. "                 \
+          "Requires -Xloggc:<filename>")                                    \
+                                                                            \
+  product(uintx, NumberOfGCLogFiles, 0,                                     \
+          "Number of gclog files in rotation, "                             \
+          "Default: 0, no rotation")                                        \
+                                                                            \
+  product(uintx, GCLogFileSize, 0,                                          \
+          "GC log file size, Default: 0 bytes, no rotation "                \
+          "Only valid with UseGCLogFileRotation")                           \
+                                                                            \
   /* JVMTI heap profiling */                                                \
                                                                             \
   diagnostic(bool, TraceJVMTIObjectTagging, false,                          \