Skip to content

Commit 4b20e46

Browse files
committed
8255579: x86: Use cmpq(Register,Address) in safepoint_poll
Reviewed-by: eosterlund, zgu
1 parent 72ff8e2 commit 4b20e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/cpu/x86/macroAssembler_x86.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2765,7 +2765,7 @@ void MacroAssembler::safepoint_poll(Label& slow_path, Register thread_reg, bool
27652765
if (at_return) {
27662766
// Note that when in_nmethod is set, the stack pointer is incremented before the poll. Therefore,
27672767
// we may safely use rsp instead to perform the stack watermark check.
2768-
cmpq(Address(thread_reg, Thread::polling_word_offset()), in_nmethod ? rsp : rbp);
2768+
cmpq(in_nmethod ? rsp : rbp, Address(thread_reg, Thread::polling_word_offset()));
27692769
jcc(Assembler::above, slow_path);
27702770
return;
27712771
}

0 commit comments

Comments
 (0)