< prev index next >

src/hotspot/share/runtime/task.cpp

Print this page

        

*** 60,72 **** _intervalHistogram[ms]++; } #endif { ! // The WatcherThread does not participate in the safepoint protocol ! // for the PeriodicTask_lock because it is not a JavaThread. ! MutexLockerEx ml(PeriodicTask_lock, Mutex::_no_safepoint_check_flag); int orig_num_tasks = _num_tasks; for(int index = 0; index < _num_tasks; index++) { _tasks[index]->execute_if_pending(delay_time); if (_num_tasks < orig_num_tasks) { // task dis-enrolled itself --- 60,70 ---- _intervalHistogram[ms]++; } #endif { ! MutexLocker ml(PeriodicTask_lock); int orig_num_tasks = _num_tasks; for(int index = 0; index < _num_tasks; index++) { _tasks[index]->execute_if_pending(delay_time); if (_num_tasks < orig_num_tasks) { // task dis-enrolled itself
< prev index next >