if (owningThread.getJavaThread().getAddress().equals(owner)) {
// the owner field is the JavaThread *
if (Assert.ASSERTS_ENABLED) {
Assert.that(false, "must have heavyweight monitor with JavaThread * owner");
}
entryCount = (int) mark.monitor().recursions() + 1;
} else {
// The owner field is the Lock word on the JavaThread's stack
// so the recursions field is not valid. We have to count the
// number of recursive monitor entries the hard way.
entryCount = countLockedObjects(owningThread.getJavaThread(), saObject);