diff src/share/vm/runtime/mutexLocker.cpp @ 1656:4e5661ba9d98

6944166: G1: explicit GCs are not always handled correctly Summary: G1 was not handling explicit GCs correctly in many ways. It does now. See the CR for the list of improvements contained in this changeset. Reviewed-by: iveresov, ysr, johnc
author tonyp
date Mon, 28 Jun 2010 14:13:17 -0400
parents b812ff5abc73
children f95d63e2154a
line wrap: on
line diff
--- a/src/share/vm/runtime/mutexLocker.cpp	Mon Jun 28 14:13:18 2010 -0400
+++ b/src/share/vm/runtime/mutexLocker.cpp	Mon Jun 28 14:13:17 2010 -0400
@@ -159,6 +159,8 @@
   def(STS_init_lock              , Mutex,   leaf,        true );
   if (UseConcMarkSweepGC) {
     def(iCMS_lock                  , Monitor, special,     true ); // CMS incremental mode start/stop notification
+  }
+  if (UseConcMarkSweepGC || UseG1GC) {
     def(FullGCCount_lock           , Monitor, leaf,        true ); // in support of ExplicitGCInvokesConcurrent
   }
   if (UseG1GC) {