8351673: Clean up a case of if (LockingMode == LM_LIGHTWEIGHT) in a legacy-only locking mode function

Reviewed-by: pchilanomate
This commit is contained in:
Coleen Phillimore 2025-03-11 20:32:21 +00:00
parent 9a49418138
commit 64464eab62

View File

@ -407,10 +407,6 @@ bool ObjectSynchronizer::quick_enter_legacy(oop obj, BasicLock* lock, JavaThread
return false; // Slow path
}
if (LockingMode == LM_LIGHTWEIGHT) {
return LightweightSynchronizer::quick_enter(obj, lock, current);
}
assert(LockingMode == LM_LEGACY, "legacy mode below");
const markWord mark = obj->mark();