I want to backport JDK-8185164 change to 8u because this issue will affect
JVMTI users who want to check owned monitors in MonitorContendedEnter JVMTI
Could you review it?
I could not backport testcase from jdk10 hs because the facility of native test
is not provided in 8u.
Of course I checked this change works fine on jdk8u-dev with my testcase.