Add memory barrier when entering the j.l.Object constructor.
Important simplification mentioned inJDK-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>.
Important simplification mentioned in
> 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>.
- is blocked by
-
JDK-8367767 [lworld] Interpreter adherence to new memory model rules for strict instance fields
-
- Resolved
-
-
JDK-8366372 Valhalla: memory model rules for strict instance fields
-
- Resolved
-
- relates to
-
JDK-8369166 [lworld] Avoid final field barriers at the end of constructors for strict fields
-
- Open
-
- links to
-
Commit(lworld) openjdk/valhalla/f8ced6c2
-
Review(lworld) openjdk/valhalla/1656