JDK-8337225 : Demote maxStack and maxLocals from CodeModel to CodeAttribute
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-07-25
  • Updated: 2024-08-05
  • Resolved: 2024-07-29
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 b09Fixed
Related Reports
CSR :  
Description
Max stack and max locals are information on Code attribute; this is rarely, if ever, used by code transformations, and has no need to be exposed in the buffered code models. In addition, these are hard to implement, and implementations are inefficient. Users who want these information can always use an extra transform to capture these values.
Comments
Changeset: ab27090a Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-07-29 21:58:08 +0000 URL: https://git.openjdk.org/jdk/commit/ab27090aa085283233851410827767785b3b7b1f
29-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20338 Date: 2024-07-25 22:41:08 +0000
25-07-2024