JDK-8343436 : Regression in StackMapGenerator after JDK-8339205
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-11-01
  • Updated: 2025-02-07
  • Resolved: 2024-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 24
24 b23Fixed
Related Reports
Causes :  
Description
JDK-8339205 created regression in max stack calculations by implementation of StackMapGenerator.Frame::decStack1PushStack(Type type1, Type type2) adding +2 to the stack size instead of +1.


Comments
Changeset: f9e1c62d Branch: master Author: Adam Sotona <asotona@openjdk.org> Date: 2024-11-04 07:19:23 +0000 URL: https://git.openjdk.org/jdk/commit/f9e1c62dcd2279cbe5a93a2b19a492cb5b087719
04-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21835 Date: 2024-11-01 15:03:51 +0000
01-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21828 Date: 2024-11-01 13:50:39 +0000
01-11-2024

Noticed a similar error during review for dup2_x2, but didn't notice this more significant one :(
01-11-2024