8294053: Unneeded local variable in handle_safefetch()

Reviewed-by: rehn, stuefe, shade
This commit is contained in:
Fredrik Bredberg 2022-09-23 12:34:06 +00:00 committed by Robbin Ehn
parent 0b56b82243
commit acd75e0f1c

View File

@ -48,7 +48,6 @@ extern "C" char _SafeFetchN_fault[] __attribute__ ((visibility ("hidden")));
bool handle_safefetch(int sig, address pc, void* context) { bool handle_safefetch(int sig, address pc, void* context) {
ucontext_t* uc = (ucontext_t*)context; ucontext_t* uc = (ucontext_t*)context;
if ((sig == SIGSEGV || sig == SIGBUS) && uc != NULL) { if ((sig == SIGSEGV || sig == SIGBUS) && uc != NULL) {
address pc = os::Posix::ucontext_get_pc(uc);
if (pc == (address)_SafeFetch32_fault) { if (pc == (address)_SafeFetch32_fault) {
os::Posix::ucontext_set_pc(uc, (address)_SafeFetch32_continuation); os::Posix::ucontext_set_pc(uc, (address)_SafeFetch32_continuation);
return true; return true;