Skip to content

Commit 758610c

Browse files
committed
Remove exception code checks from handle_safefetch
1 parent 70f20f9 commit 758610c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/hotspot/os/windows/safefetch_static_windows.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ extern "C" char _SafeFetchN_fault[];
4646

4747
bool handle_safefetch(int exception_code, address pc, void* context) {
4848
CONTEXT* ctx = (CONTEXT*)context;
49-
if ((exception_code == EXCEPTION_ACCESS_VIOLATION ||
50-
exception_code == EXCEPTION_GUARD_PAGE) && ctx != nullptr) {
49+
if (ctx != nullptr) {
5150
if (pc == (address)_SafeFetch32_fault) {
5251
os::win32::context_set_pc(ctx, (address)_SafeFetch32_continuation);
5352
return true;

0 commit comments

Comments
 (0)