JDK-8331743 : make lightweight locking interpreter frames more compact
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2024-05-06
  • Updated: 2024-07-30
  • Resolved: 2024-07-30
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
24Resolved
Related Reports
Relates :  
Relates :  
Description
Lightweight locking doesn't appear to use the displaced header slot in the BasicLock stack record of interpreter frames. We could save some stack space if we made its use and allocation conditional on the locking mode.  
Comments
In JDK-8315884 the displaced header slot will be used to store the ObjectMonitor to make unlocking find the ObjectMonitor faster for the locked object. https://github.com/openjdk/jdk/pull/20067/files#diff-3673633e09f00548edd90fbfb16ae6d9360f5e790c5dd3d75b3fc7a577d89c9fR46 Closing as NAI.
30-07-2024