hotspot/src/share/vm/runtime/task.cpp
changeset 33794 41ef3dc95179
parent 30608 d79880a5cf2f
equal deleted inserted replaced
33790:229ed95d8958 33794:41ef3dc95179
   115   MutexLockerEx ml(PeriodicTask_lock->owned_by_self() ? NULL
   115   MutexLockerEx ml(PeriodicTask_lock->owned_by_self() ? NULL
   116                                                       : PeriodicTask_lock);
   116                                                       : PeriodicTask_lock);
   117 
   117 
   118   if (_num_tasks == PeriodicTask::max_tasks) {
   118   if (_num_tasks == PeriodicTask::max_tasks) {
   119     fatal("Overflow in PeriodicTask table");
   119     fatal("Overflow in PeriodicTask table");
       
   120   } else {
       
   121     _tasks[_num_tasks++] = this;
   120   }
   122   }
   121   _tasks[_num_tasks++] = this;
       
   122 
   123 
   123   WatcherThread* thread = WatcherThread::watcher_thread();
   124   WatcherThread* thread = WatcherThread::watcher_thread();
   124   if (thread != NULL) {
   125   if (thread != NULL) {
   125     thread->unpark();
   126     thread->unpark();
   126   } else {
   127   } else {