Skip to content

Commit

Permalink
remove interruptible check from conditional in Object::wait
Browse files Browse the repository at this point in the history
  • Loading branch information
pchilano committed Oct 25, 2024
1 parent d6313cf commit 4a9c030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/objectMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ void ObjectMonitor::wait(jlong millis, bool interruptible, TRAPS) {
current->set_current_waiting_monitor(this);

ContinuationEntry* ce = current->last_continuation();
if (interruptible && ce != nullptr && ce->is_virtual_thread()) {
if (ce != nullptr && ce->is_virtual_thread()) {
int result = Continuation::try_preempt(current, ce->cont_oop(current));
if (result == freeze_ok) {
VThreadWait(current, millis);
Expand Down

0 comments on commit 4a9c030

Please sign in to comment.