Skip to content

Commit

Permalink
Check only for target == current
Browse files Browse the repository at this point in the history
  • Loading branch information
jdksjolen committed Jun 7, 2022
1 parent f2646e0 commit cc6736c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/handshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void Handshake::execute(HandshakeClosure* hs_cl, ThreadsListHandle* tlh, JavaThr
guarantee(target != nullptr, "must be");

JavaThread* current = JavaThread::current();
if (target->is_handshake_safe_for(current)) {
if (target == current) {
hs_cl->do_thread(target);
return;
}
Expand Down

0 comments on commit cc6736c

Please sign in to comment.