JDK-8370871 : [s390x] consistently update top_frame_sp
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: s390x
  • Submitted: 2025-10-29
  • Updated: 2025-11-11
  • Resolved: 2025-11-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b23Fixed
Related Reports
Relates :  
Description
while working on loom port for s390 I ran into this assert: (Please note loom is not yet ported on s390 as of now) 

 inline void FreezeBase::prepare_freeze_interpreted_top_frame(frame& f) {
   // nothing to do
  DEBUG_ONLY( intptr_t* lspp = (intptr_t*) &(f.ijava_state()->top_frame_sp); )
  assert(*lspp == f.unextended_sp() - f.fp(), "should be " INTPTR_FORMAT " usp:" INTPTR_FORMAT " fp:" INTPTR_FORMAT " diff = %ld", *lspp, p2i(f.unextended_sp()), p2i(f.fp()), f.unextended_sp() - f.fp());
 }


I found out that top_frame_sp field of interpreter frame is not consistently updated which is cause for this assert failure. 

For this i am considering this be related to JDK-8286300 issue. Please remove if it doesn't make sense.
Comments
Changeset: 50bb92a3 Branch: master Author: Amit Kumar <amitkumar@openjdk.org> Date: 2025-11-04 04:59:32 +0000 URL: https://git.openjdk.org/jdk/commit/50bb92a33b32778a96b1823ff995889892bef890
04-11-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/28042 Date: 2025-10-29 09:40:34 +0000
29-10-2025