8223572: ~ThreadInVMForHandshake() should call handle_special_runtime_exit_condition()

Reviewed-by: dcubed, rehn, dholmes
This commit is contained in:
Richard Reingruber 2019-05-15 12:30:02 +02:00
parent a5b7966e81
commit 4e38fe2957

View file

@ -137,6 +137,12 @@ class ThreadInVMForHandshake : public ThreadStateTransition {
SafepointMechanism::block_if_requested(_thread);
_thread->set_thread_state(_original_state);
if (_original_state != _thread_blocked_trans && _original_state != _thread_in_vm_trans &&
_thread->has_special_runtime_exit_condition()) {
_thread->handle_special_runtime_exit_condition(
!_thread->is_at_poll_safepoint() && (_original_state != _thread_in_native_trans));
}
}
public: