< prev index next >

src/hotspot/share/gc/cms/concurrentMarkSweepThread.cpp

Print this page

        

@@ -229,11 +229,11 @@
   double end_time_secs = start_time_secs + (t_millis / ((double) MILLIUNITS));
 
   // Total collections count before waiting loop
   unsigned int before_count;
   {
-    MutexLockerEx hl(Heap_lock, Mutex::_no_safepoint_check_flag);
+    MutexLocker hl(Heap_lock);
     before_count = heap->total_collections();
   }
 
   unsigned int loop_count = 0;
 

@@ -275,11 +275,11 @@
     }
 
     // Total collections count after the event
     unsigned int after_count;
     {
-      MutexLockerEx hl(Heap_lock, Mutex::_no_safepoint_check_flag);
+      MutexLocker hl(Heap_lock);
       after_count = heap->total_collections();
     }
 
     if(before_count != after_count) {
       // There was a collection - success
< prev index next >