JDK-8341703 : Remove Klass::_prototype_header
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-10-08
  • Updated: 2025-05-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.
Other
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Description
With JDK-8305895, we added a field _prototype_header in Klass, which encodes that Klass* when compact headers are turned on. The purpose was to simplify the allocation paths, where we can initialize the new object's header with that prototype.
The prototype can be removed and we can instead encode the Klass* on the allocation paths. This might actually be faster, because we save a load from memory, and we already have the Klass* in a register and only need to do some cheap shifting and masking on it.