JDK-8339519 : Remove size field from instructions
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-03
  • Updated: 2024-10-14
  • Resolved: 2024-09-06
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 b15Fixed
Related Reports
Duplicate :  
Description
Most (pseudo)instructions have fixed size. The only 2 with variable size are tableswitch and lookupswitch. The size information can be kept in the relevant fields and they can override the sizeInBytes method, while all other instructions just return opcode.sizeIfFixed().
Comments
Changeset: 5b72bbf9 Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-09-06 14:57:12 +0000 URL: https://git.openjdk.org/jdk/commit/5b72bbf9d4a4c9c966a665c8d48e5f6c0dcdba1c
06-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20880 Date: 2024-09-05 23:02:16 +0000
05-09-2024