8294053: Unneeded local variable in handle_safefetch()
Reviewed-by: rehn, stuefe, shade
This commit is contained in:
parent
0b56b82243
commit
acd75e0f1c
@ -48,7 +48,6 @@ extern "C" char _SafeFetchN_fault[] __attribute__ ((visibility ("hidden")));
|
||||
bool handle_safefetch(int sig, address pc, void* context) {
|
||||
ucontext_t* uc = (ucontext_t*)context;
|
||||
if ((sig == SIGSEGV || sig == SIGBUS) && uc != NULL) {
|
||||
address pc = os::Posix::ucontext_get_pc(uc);
|
||||
if (pc == (address)_SafeFetch32_fault) {
|
||||
os::Posix::ucontext_set_pc(uc, (address)_SafeFetch32_continuation);
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user