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(); }