From 53c5b93ca528ec21628c2b03dd6064e02f7ac408 Mon Sep 17 00:00:00 2001 From: Alex Menkov Date: Tue, 18 Mar 2025 17:54:38 +0000 Subject: [PATCH] 8352180: AttachListenerThread causes many tests to timeout on Windows Reviewed-by: dholmes, alanb --- src/hotspot/os/windows/attachListener_windows.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hotspot/os/windows/attachListener_windows.cpp b/src/hotspot/os/windows/attachListener_windows.cpp index 2dbb0391290..2cc9d192ce5 100644 --- a/src/hotspot/os/windows/attachListener_windows.cpp +++ b/src/hotspot/os/windows/attachListener_windows.cpp @@ -92,6 +92,7 @@ public: void close() { if (opened()) { + ThreadBlockInVM tbivm(JavaThread::current()); FlushFileBuffers(_hPipe); CloseHandle(_hPipe); _hPipe = INVALID_HANDLE_VALUE;