< prev index next >

src/hotspot/share/runtime/thread.cpp

Print this page

        

@@ -1504,11 +1504,11 @@
 
   // Signal that it is terminated
   {
     MutexLockerEx mu(Terminator_lock, Mutex::_no_safepoint_check_flag);
     _watcher_thread = NULL;
-    Terminator_lock->notify();
+    Terminator_lock->notify_all();
   }
 }
 
 void WatcherThread::start() {
   assert(PeriodicTask_lock->owned_by_self(), "PeriodicTask_lock required");
< prev index next >