Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366372 Valhalla: memory model rules for strict instance fields
  3. JDK-8367785

[lworld] Compiler adherence to new memory model rules for strict instance fields

XMLWordPrintable

      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>.

            thartmann Tobias Hartmann
            lfoltan Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: