--- a/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp Thu Oct 17 20:27:44 2019 +0100
+++ b/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp Thu Oct 17 20:53:35 2019 +0100
@@ -356,9 +356,9 @@
}
#ifdef ASSERT
- Monitor* owned_lock = thread->owned_locks();
+ Mutex* owned_lock = thread->owned_locks();
while (owned_lock != NULL) {
- Monitor* next = owned_lock->next();
+ Mutex* next = owned_lock->next();
owned_lock->unlock();
owned_lock = next;
}
@@ -393,6 +393,10 @@
Service_lock->unlock();
}
+ if (UseNotificationThread && Notification_lock->owned_by_self()) {
+ Notification_lock->unlock();
+ }
+
if (CodeCache_lock->owned_by_self()) {
CodeCache_lock->unlock();
}