src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp
branchJEP-349-branch
changeset 58154 060d9d139109
parent 57360 5d043a159d5c
parent 57840 4863a802a7c1
child 58395 42d3bce9d538
equal deleted inserted replaced
58101:84b0544833c4 58154:060d9d139109
   351   if (thread->is_Java_thread()) {
   351   if (thread->is_Java_thread()) {
   352     ((JavaThread*)thread)->set_thread_state(_thread_in_vm);
   352     ((JavaThread*)thread)->set_thread_state(_thread_in_vm);
   353   }
   353   }
   354 
   354 
   355 #ifdef ASSERT
   355 #ifdef ASSERT
   356   Monitor* owned_lock = thread->owned_locks();
   356   Mutex* owned_lock = thread->owned_locks();
   357   while (owned_lock != NULL) {
   357   while (owned_lock != NULL) {
   358     Monitor* next = owned_lock->next();
   358     Mutex* next = owned_lock->next();
   359     owned_lock->unlock();
   359     owned_lock->unlock();
   360     owned_lock = next;
   360     owned_lock = next;
   361   }
   361   }
   362 #endif // ASSERT
   362 #endif // ASSERT
   363 
   363