hotspot/src/share/vm/runtime/mutexLocker.cpp
changeset 6058 9c9aec6ab47d
parent 5707 6c66849ed24e
child 7397 5b173b4ca846
--- a/hotspot/src/share/vm/runtime/mutexLocker.cpp	Mon Jun 28 14:13:18 2010 -0400
+++ b/hotspot/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) {