src/hotspot/share/runtime/threadSMR.cpp
changeset 52341 2b58b8e1d28f
parent 50718 5698cf4e50f1
child 52448 bc5c7f63dbae
equal deleted inserted replaced
52340:adb107c71a12 52341:2b58b8e1d28f
   987     ThreadsSMRSupport::clear_delete_notify();
   987     ThreadsSMRSupport::clear_delete_notify();
   988     ThreadsSMRSupport::delete_lock()->unlock();
   988     ThreadsSMRSupport::delete_lock()->unlock();
   989     // Retry the whole scenario.
   989     // Retry the whole scenario.
   990   }
   990   }
   991 
   991 
   992   if (ThreadLocalHandshakes) {
       
   993     // The thread is about to be deleted so cancel any handshake.
       
   994     thread->cancel_handshake();
       
   995   }
       
   996 
       
   997   delete thread;
   992   delete thread;
   998   if (EnableThreadSMRStatistics) {
   993   if (EnableThreadSMRStatistics) {
   999     timer.stop();
   994     timer.stop();
  1000     uint millis = (uint)timer.milliseconds();
   995     uint millis = (uint)timer.milliseconds();
  1001     ThreadsSMRSupport::inc_deleted_thread_cnt();
   996     ThreadsSMRSupport::inc_deleted_thread_cnt();