Skip to content

Commit 868051c

Browse files
committed
more assert
1 parent a43ab79 commit 868051c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/hotspot/cpu/s390/sharedRuntime_s390.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,7 @@ static void fill_continuation_entry(MacroAssembler* masm, Register reg_cont_obj,
14461446
// None.
14471447
//
14481448
// Kills:
1449+
// Z_R0_scratch (in debug builds)
14491450
// Z_R10 (when CheckJNICalls is enabled)
14501451
//
14511452
static void continuation_enter_cleanup(MacroAssembler* masm) {
@@ -1454,6 +1455,10 @@ static void continuation_enter_cleanup(MacroAssembler* masm) {
14541455
#ifdef ASSERT
14551456
__ z_cg(Z_SP, Address(Z_thread, JavaThread::cont_entry_offset()));
14561457
__ asm_assert(Assembler::bcondEqual, FILE_AND_LINE ": incorrect Z_SP", 0x1bb);
1458+
1459+
__ z_lgf(Z_R0, Address(Z_SP, ContinuationEntry::cookie_offset()));
1460+
__ z_cfi(Z_R0, ContinuationEntry::cookie_value());
1461+
__ asm_assert(Assembler::bcondEqual, FILE_AND_LINE ": incorrect cookie value", 0x1cc);
14571462
#endif // ASSERT
14581463

14591464
__ z_mvc(Address(Z_thread, JavaThread::cont_fastpath_offset()), /* move to */

0 commit comments

Comments
 (0)