8329898: Revert one use of markWord.is_unlocked back to is_neutral

Reviewed-by: stefank
This commit is contained in:
David Holmes 2024-04-09 07:40:45 +00:00
parent fbc1e6661e
commit dfaf11a3d8

View File

@ -67,7 +67,7 @@ void BasicLock::move_to(oop obj, BasicLock* dest) {
// we'll leave that optimization for another time.
if (LockingMode == LM_LEGACY) {
if (displaced_header().is_unlocked()) {
if (displaced_header().is_neutral()) {
// The object is locked and the resulting ObjectMonitor* will also be
// locked so it can't be async deflated until ownership is dropped.
ObjectSynchronizer::inflate_helper(obj);