src/share/vm/runtime/objectMonitor.cpp

Print this page
rev 4372 : 8012182: Add information about class loading and unloading to event based tracing framework
Reviewed-by:

@@ -971,11 +971,11 @@
    }
 
 #if INCLUDE_TRACE
    // get the owner's thread id for the MonitorEnter event
    // if it is enabled and the thread isn't suspended
-   if (not_suspended && Tracing::enabled(TraceJavaMonitorEnterEvent)) {
+   if (not_suspended && Tracing::is_event_enabled(TraceJavaMonitorEnterEvent)) {
      _previous_owner_tid = SharedRuntime::get_java_tid(Self);
    }
 #endif
 
    for (;;) {