JDK-8288128 : S390X: Fix crashes after JDK-8284161 (Virtual Threads)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2022-06-09
  • Updated: 2022-12-23
  • Resolved: 2022-07-05
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 19 JDK 20
19 b30Fixed 20Fixed
Related Reports
Relates :  
Relates :  
Description
Similar to other architectures, the S390X interpreter parts should not be entered with `!Continuations::enabled()`. 

Current builds on S390X crash with:

05:51:17  Compiling 4 files for BUILD_JIGSAW_TOOLS
05:51:26  Optimizing the exploded image
05:51:26  #
05:51:26  # A fatal error has been detected by the Java Runtime Environment:
05:51:26  #
05:51:26  #  Internal Error (templateInterpreterGenerator_s390.cpp:486), pid=60413, tid=60418
05:51:26  #  Error: Unimplemented()
05:51:26  #
05:51:26  # JRE version:  (19.0+25) (build )
05:51:26  # Java VM: OpenJDK 64-Bit Server VM (19-beta+25-202206090332, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-s390x)
05:51:26  # Problematic frame:
05:51:26  # V  [libjvm.so+0xaf9308]  TemplateInterpreterGenerator::generate_Continuation_doYield_entry()+0x30


Comments
According to the PR, the changes were tested with a successful "make images" so the build no longer crashed.
23-12-2022

Changeset: 0b6fd482 Author: Tyler Steele <tsteele@openjdk.org> Date: 2022-07-05 21:11:50 +0000 URL: https://git.openjdk.org/jdk19/commit/0b6fd4820c1f98d6154d7182345273a4c9468af5
05-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk19/pull/110 Date: 2022-07-05 17:38:32 +0000
05-07-2022

Assigning to Tyler for now as he seems to have a draft PR.
29-06-2022