JDK-8339198 : Remove tag field from AbstractPoolEntry
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-28
  • Updated: 2024-09-30
  • Resolved: 2024-09-20
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 b17Fixed
Related Reports
Relates :  
Description
Constant pool entry tag field is redundant information given they are already bound by class; we can use overrides instead.

Removal of hash field was considered, but as trivial as hash computation seems, it takes cpu cycles and the hash field is a smaller overhead in comparison.
Comments
Changeset: ab81197d Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-09-20 16:11:39 +0000 URL: https://git.openjdk.org/jdk/commit/ab81197d0ded93b82eea9f8fb35d1647c4520f1e
20-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21093 Date: 2024-09-19 17:07:41 +0000
19-09-2024