From df01cc528d3b6e52925b92119e43caee54ec86e8 Mon Sep 17 00:00:00 2001 From: Julian Waters Date: Fri, 29 Mar 2024 05:34:30 +0000 Subject: [PATCH] 8323576: [Windows] Fallthrough to ::abort instead of os::infinite_sleep for noreturn methods Reviewed-by: dholmes, kbarrett --- src/hotspot/os/windows/os_windows.cpp | 2 +- src/hotspot/os/windows/vmError_windows.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/os/windows/os_windows.cpp b/src/hotspot/os/windows/os_windows.cpp index 2ddebc9bf6d..e2d0b653d15 100644 --- a/src/hotspot/os/windows/os_windows.cpp +++ b/src/hotspot/os/windows/os_windows.cpp @@ -4257,7 +4257,7 @@ static void exit_process_or_thread(Ept what, int exit_code) { } // Should not reach here - os::infinite_sleep(); + ::abort(); } #undef EXIT_TIMEOUT diff --git a/src/hotspot/os/windows/vmError_windows.cpp b/src/hotspot/os/windows/vmError_windows.cpp index c149a7f4c37..dd19ee91513 100644 --- a/src/hotspot/os/windows/vmError_windows.cpp +++ b/src/hotspot/os/windows/vmError_windows.cpp @@ -71,5 +71,5 @@ void VMError::raise_fail_fast(void* exrecord, void* context) { RaiseFailFastException(static_cast(exrecord), static_cast(context), flags); - os::infinite_sleep(); + ::abort(); }