Skip to content

Commit

Permalink
8268902: Testing for threadObj != NULL is unnecessary in suspend hand…
Browse files Browse the repository at this point in the history
…shake

Reviewed-by: pchilanomate, dcubed
  • Loading branch information
coleenp committed Jun 28, 2021
1 parent 87ff277 commit 29bc381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/runtime/handshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ class ThreadSelfSuspensionHandshake : public AsyncHandshakeClosure {
};

bool HandshakeState::suspend_with_handshake() {
if (_handshakee->is_exiting() ||
_handshakee->threadObj() == NULL) {
assert(_handshakee->threadObj() != NULL, "cannot suspend with a NULL threadObj");
if (_handshakee->is_exiting()) {
log_trace(thread, suspend)("JavaThread:" INTPTR_FORMAT " exiting", p2i(_handshakee));
return false;
}
Expand Down

1 comment on commit 29bc381

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.