From 7db69e6a1292829b13da0c3c2b37c8758df94932 Mon Sep 17 00:00:00 2001 From: bobpengxie Date: Wed, 20 Dec 2023 07:46:11 +0000 Subject: [PATCH] 8322513: Build failure with minimal Reviewed-by: dholmes, rehn --- src/hotspot/share/runtime/handshake.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hotspot/share/runtime/handshake.cpp b/src/hotspot/share/runtime/handshake.cpp index a57076c021a..3919a89789c 100644 --- a/src/hotspot/share/runtime/handshake.cpp +++ b/src/hotspot/share/runtime/handshake.cpp @@ -487,10 +487,12 @@ HandshakeOperation* HandshakeState::get_op_for_self(bool allow_suspend, bool che assert(_handshakee == Thread::current(), "Must be called by self"); assert(_lock.owned_by_self(), "Lock must be held"); assert(allow_suspend || !check_async_exception, "invalid case"); +#if INCLUDE_JVMTI if (allow_suspend && _handshakee->is_disable_suspend()) { // filter out suspend operations while JavaThread is in disable_suspend mode allow_suspend = false; } +#endif if (!allow_suspend) { return _queue.peek(no_suspend_no_async_exception_filter); } else if (check_async_exception && !_async_exceptions_blocked) {