JDK-8278873 : GraphKit::combine_exception_states fails with "matching stack sizes" assert
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2021-12-15
  • Updated: 2021-12-15
  • Resolved: 2021-12-15
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
19Resolved
Related Reports
Cloners :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
When two exception states are combined with different stack sizes, we hit this assert:

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/oracle/jdk/open/src/hotspot/share/opto/graphKit.cpp:348), pid=492513, tid=492526
#  assert(ex_jvms->sp() == phi_map->_jvms->sp()) failed: matching stack sizes

We have two workarounds so far: JDK-8275638 and JDK-8273165.  We should remove these workarounds and implement a permanent fix.