diff src/share/vm/runtime/globals.hpp @ 8853:2e093b564241

7014552: gc/lock/jni/jnilockXXX works too slow on 1-processor machine Summary: Keep a counter of how many times we were stalled by the GC locker, add a diagnostic flag which sets the limit. Reviewed-by: brutisso, ehelin, johnc
author mgerdin
date Thu, 28 Mar 2013 10:27:28 +0100
parents 11d5942ef9c7
children 754c24457b20
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.hpp	Wed Mar 27 10:55:37 2013 +0100
+++ b/src/share/vm/runtime/globals.hpp	Thu Mar 28 10:27:28 2013 +0100
@@ -1402,6 +1402,10 @@
           "How much the GC can expand the eden by while the GC locker  "    \
           "is active (as a percentage)")                                    \
                                                                             \
+  diagnostic(intx, GCLockerRetryAllocationCount, 2,                         \
+          "Number of times to retry allocations when"                       \
+          " blocked by the GC locker")                                      \
+                                                                            \
   develop(bool, UseCMSAdaptiveFreeLists, true,                              \
           "Use Adaptive Free Lists in the CMS generation")                  \
                                                                             \