< prev index next >

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

Print this page

        

*** 229,239 **** 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); before_count = heap->total_collections(); } unsigned int loop_count = 0; --- 229,239 ---- double end_time_secs = start_time_secs + (t_millis / ((double) MILLIUNITS)); // Total collections count before waiting loop unsigned int before_count; { ! MutexLocker hl(Heap_lock); before_count = heap->total_collections(); } unsigned int loop_count = 0;
*** 275,285 **** } // Total collections count after the event unsigned int after_count; { ! MutexLockerEx hl(Heap_lock, Mutex::_no_safepoint_check_flag); after_count = heap->total_collections(); } if(before_count != after_count) { // There was a collection - success --- 275,285 ---- } // Total collections count after the event unsigned int after_count; { ! MutexLocker hl(Heap_lock); after_count = heap->total_collections(); } if(before_count != after_count) { // There was a collection - success
< prev index next >