JDK-8339167 : Remove AbstractPoolEntry.PrimitiveEntry to reduce boxing overheads
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-28
  • Updated: 2024-09-02
  • Resolved: 2024-08-28
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 b13Fixed
Related Reports
Relates :  
Description
PrimitiveEntry is today an intermediate abstract base class for Integer-/Long-/Float-/DoubleEntryImpl. This abstraction seem to have little benefit (some code reduction), but leads to code that need to match the correct ClassFile.TAG_* constant with an appropriate cast, excess boxing and unboxing etc. Removing it brings a tiny win on startup.
Comments
Changeset: eff6d9cd Branch: master Author: Claes Redestad <redestad@openjdk.org> Date: 2024-08-28 18:22:30 +0000 URL: https://git.openjdk.org/jdk/commit/eff6d9cd23f9da8720a44ad628aa0a3e6f58facf
28-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20749 Date: 2024-08-28 14:27:45 +0000
28-08-2024