Skip to content

Commit

Permalink
8351673: Clean up a case of if (LockingMode == LM_LIGHTWEIGHT) in a l…
Browse files Browse the repository at this point in the history
…egacy-only locking mode function

Reviewed-by: pchilanomate
  • Loading branch information
coleenp committed Mar 11, 2025
1 parent 9a49418 commit 64464ea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/hotspot/share/runtime/synchronizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 64464ea

Please sign in to comment.