src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp
changeset 57840 4863a802a7c1
parent 54623 1126f0607c70
child 58154 060d9d139109
child 58503 726a3945e934
equal deleted inserted replaced
57831:d41c18a68257 57840:4863a802a7c1
   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