Merge pull request #22304 from hangshao0/vt · eclipse-openj9/openj9@cec363b

Original file line numberDiff line numberDiff line change

@@ -1035,7 +1035,7 @@ preparePinnedVirtualThreadForUnmount(J9VMThread *currentThread, j9object_t syncO

10351035

/* Either the lock is acquired or FLC bit set, safe to release the inflated monitor. */

10361036

omrthread_monitor_exit(monitor);

10371037
1038-

if (J9_FLATLOCK_OWNER(lock) == currentThread) {

1038+

if (J9_FLATLOCK_OWNER(newLockword) == currentThread) {

10391039

/* Lock is acquired. */

10401040

currentThread->ownedMonitorCount += 1;

10411041

result = (UDATA)syncObj;