8366659: Fixed new lines.

This commit is contained in:
Anton Artemov 2025-10-27 11:18:15 +01:00
parent 1fd0278a0e
commit 3a6b798cf4

View File

@ -1856,7 +1856,9 @@ void ObjectMonitor::wait(jlong millis, bool interruptible, TRAPS) {
{ // State transition wrappers
OSThread* osthread = current->osthread();
OSThreadWaitState osts(osthread, true);
assert(current->thread_state() == _thread_in_vm, "invariant");
{
ThreadBlockInVM tbivm(current, false /* allow_suspend */);
if (interrupted || HAS_PENDING_EXCEPTION) {
@ -1910,8 +1912,6 @@ void ObjectMonitor::wait(jlong millis, bool interruptible, TRAPS) {
// although the raw address of the object may have changed.
// (Don't cache naked oops over safepoints, of course).
OrderAccess::fence();
assert(!has_owner(current), "invariant");
@ -1970,6 +1970,7 @@ void ObjectMonitor::wait(jlong millis, bool interruptible, TRAPS) {
current->_ParkEvent->unpark();
}
}
if (wait_event.should_commit()) {
post_monitor_wait_event(&wait_event, this, node._notifier_tid, millis, ret == OS_TIMEOUT);
}