JDK-8367785 : [lworld] Compiler adherence to new memory model rules for strict instance fields
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: repo-valhalla
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-09-16
  • Updated: 2025-10-06
  • Resolved: 2025-10-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
repo-valhallaFixed
Related Reports
Blocks :  
Blocks :  
Relates :  
Description
Add memory barrier when entering the j.l.Object constructor.

Important simplification mentioned in JDK-8366372:

> While these rules uniformly attach the freeze to a constructor that performs a field write, in practice it is impossible to observe the written field until after execution reaches Object.<init>, so an implementation can collapse all of the specified early freeze actions into one action for all of an object's strict instance fields at Object.<init>.
Comments
A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1656 Date: 2025-10-03 14:12:34 +0000
06-10-2025