Skip to content

Commit 5664d91

Browse files
committed
8374769: PPC: MASM::pop_cont_fastpath() should reset _cont_fastpath if SP == _cont_fastpath
Reviewed-by: mdoerr
1 parent fda8d05 commit 5664d91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/cpu/ppc/macroAssembler_ppc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4535,7 +4535,7 @@ void MacroAssembler::push_cont_fastpath() {
45354535
Label done;
45364536
ld_ptr(R0, JavaThread::cont_fastpath_offset(), R16_thread);
45374537
cmpld(CR0, R1_SP, R0);
4538-
ble(CR0, done);
4538+
ble(CR0, done); // if (SP <= _cont_fastpath) goto done;
45394539
st_ptr(R1_SP, JavaThread::cont_fastpath_offset(), R16_thread);
45404540
bind(done);
45414541
}
@@ -4546,7 +4546,7 @@ void MacroAssembler::pop_cont_fastpath() {
45464546
Label done;
45474547
ld_ptr(R0, JavaThread::cont_fastpath_offset(), R16_thread);
45484548
cmpld(CR0, R1_SP, R0);
4549-
ble(CR0, done);
4549+
blt(CR0, done); // if (SP < _cont_fastpath) goto done;
45504550
li(R0, 0);
45514551
st_ptr(R0, JavaThread::cont_fastpath_offset(), R16_thread);
45524552
bind(done);

0 commit comments

Comments
 (0)