We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8de5d20 commit 33fd6aeCopy full SHA for 33fd6ae
src/hotspot/cpu/x86/relocInfo_x86.cpp
@@ -98,7 +98,11 @@ address Relocation::pd_call_destination(address orig_addr) {
98
if (ni->is_call()) {
99
return nativeCall_at(addr())->destination() + adj;
100
} else if (ni->is_jump()) {
101
- return nativeJump_at(addr())->jump_destination() + adj;
+ address dest = nativeJump_at(addr())->jump_destination();
102
+ if (dest == (address) -1) {
103
+ return addr(); // jump to self
104
+ }
105
+ return dest + adj;
106
} else if (ni->is_cond_jump()) {
107
return nativeGeneralJump_at(addr())->jump_destination() + adj;
108
} else if (ni->is_mov_literal64()) {
0 commit comments