< prev index next >
src/hotspot/share/runtime/task.cpp
Print this page
@@ -60,13 +60,11 @@
_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);
+ 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 >