mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-04 23:48:33 +00:00
6744422: incorrect handling of -1 in set_jump_destination
Reviewed-by: rasbold
This commit is contained in:
parent
b6b71da22d
commit
29440e8636
@ -391,6 +391,9 @@ class NativeJump: public NativeInstruction {
|
||||
|
||||
void set_jump_destination(address dest) {
|
||||
intptr_t val = dest - next_instruction_address();
|
||||
if (dest == (address) -1) {
|
||||
val = -5; // jump to self
|
||||
}
|
||||
#ifdef AMD64
|
||||
assert((labs(val) & 0xFFFFFFFF00000000) == 0 || dest == (address)-1, "must be 32bit offset or -1");
|
||||
#endif // AMD64
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user