src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 54623 1126f0607c70
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
   354   if (thread->is_Java_thread()) {
   354   if (thread->is_Java_thread()) {
   355     ((JavaThread*)thread)->set_thread_state(_thread_in_vm);
   355     ((JavaThread*)thread)->set_thread_state(_thread_in_vm);
   356   }
   356   }
   357 
   357 
   358 #ifdef ASSERT
   358 #ifdef ASSERT
   359   Monitor* owned_lock = thread->owned_locks();
   359   Mutex* owned_lock = thread->owned_locks();
   360   while (owned_lock != NULL) {
   360   while (owned_lock != NULL) {
   361     Monitor* next = owned_lock->next();
   361     Mutex* next = owned_lock->next();
   362     owned_lock->unlock();
   362     owned_lock->unlock();
   363     owned_lock = next;
   363     owned_lock = next;
   364   }
   364   }
   365 #endif // ASSERT
   365 #endif // ASSERT
   366 
   366 
   389   }
   389   }
   390 
   390 
   391 
   391 
   392   if (Service_lock->owned_by_self()) {
   392   if (Service_lock->owned_by_self()) {
   393     Service_lock->unlock();
   393     Service_lock->unlock();
       
   394   }
       
   395 
       
   396   if (UseNotificationThread && Notification_lock->owned_by_self()) {
       
   397     Notification_lock->unlock();
   394   }
   398   }
   395 
   399 
   396   if (CodeCache_lock->owned_by_self()) {
   400   if (CodeCache_lock->owned_by_self()) {
   397     CodeCache_lock->unlock();
   401     CodeCache_lock->unlock();
   398   }
   402   }