mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-05 05:30:45 +00:00
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:
parent
9a49418138
commit
64464eab62
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user