JDK-8331071 : Release Note: Deprecation of the `-XX:+UseEmptySlotsInSupers`
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2024-04-24
  • Updated: 2024-09-05
  • Resolved: 2024-05-22
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 23
23Resolved
Description
The option `-XX:+UseEmptySlotsInSupers` has been deprecated in JDK 23 and will become obsolete in JDK 24.  The default value is "true". This means that the HotSpot JVM will always allocate fields in a super class during field layout where there is aligned space to fit the fields.  Code that relies on the position of instance fields should be aware of this detail of instance field layout.  The JVM field layout format is not specified by the JVMLS and is subject to change.