8266936: Add a finalization JFR event

Reviewed-by: coleenp, mchung, egahlin
This commit is contained in:
Markus Grönlund 2021-10-18 16:52:36 +00:00
parent bcbe3845d9
commit 72a976ef05
36 changed files with 1517 additions and 551 deletions

View file

@ -305,6 +305,7 @@ void mutex_init() {
#if INCLUDE_JFR
def(JfrBuffer_lock , PaddedMutex , nosafepoint, true);
def(JfrMsg_lock , PaddedMonitor, nosafepoint-3, true);
def(JfrStacktrace_lock , PaddedMutex , stackwatermark-1, true);
def(JfrThreadSampler_lock , PaddedMonitor, nosafepoint, true);
#endif
@ -365,10 +366,6 @@ void mutex_init() {
defl(Module_lock , PaddedMutex , ClassLoaderDataGraph_lock, false);
defl(SystemDictionary_lock , PaddedMonitor, Module_lock, true);
defl(JNICritical_lock , PaddedMonitor, MultiArray_lock, true); // used for JNI critical regions
#if INCLUDE_JFR
defl(JfrMsg_lock , PaddedMonitor, Module_lock, true);
#endif
}
GCMutexLocker::GCMutexLocker(Mutex* mutex) {