GetOwnedMonitorInfo JVMTI function returns a monitor which is not yet owned when it is called at MonitorContendedEnter JVMTI event. I attached reproducer in this tichet. Please read README.md. GetOwnedMonitorInfo() should not return a pending monitor.
|