From 10ec62d643a0c0174cd9ca74041bf13fa127d20e Mon Sep 17 00:00:00 2001 From: Harshit Dhiman Date: Wed, 15 Jul 2026 04:17:27 +0000 Subject: [PATCH] 8388016: [s390x] Remove the alignment from stubGenerator Reviewed-by: aph, amitkumar --- src/hotspot/cpu/s390/stubGenerator_s390.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hotspot/cpu/s390/stubGenerator_s390.cpp b/src/hotspot/cpu/s390/stubGenerator_s390.cpp index d1601d4f147..381d1c02277 100644 --- a/src/hotspot/cpu/s390/stubGenerator_s390.cpp +++ b/src/hotspot/cpu/s390/stubGenerator_s390.cpp @@ -3306,10 +3306,12 @@ class StubGenerator: public StubCodeGenerator { // Make room for the thawed frames and align the stack. __ add64(Z_RET, frame::z_abi_160_size); - { // stack alignment - __ z_lcgr(Z_RET, Z_RET); // negate Z_RET value - __ z_nill(Z_RET, -frame::alignment_in_bytes); - } +#ifdef ASSERT + __ z_tmll(Z_RET, frame::alignment_in_bytes - 1); + __ asm_assert(Assembler::bcondAllZero, FILE_AND_LINE ": size is not aligned properly", 71); +#endif // ASSERT + + __ z_lcgr(Z_RET, Z_RET); // negate Z_RET value __ resize_frame( /* offset = */ Z_RET,/* fp = */ Z_R1, /* load_fp = */ true); __ z_lghi(Z_ARG2, kind);