提交 0233ed94 编写于 作者: N never

6744422: incorrect handling of -1 in set_jump_destination

Reviewed-by: rasbold
上级 f1d1e612
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册