Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8073358

memory fences for fields are present in code even though object has been lifted into registers

      Some memory fences (MemBar nodes) are apparently left behind after a non-escaping object is scalarized. The report is here (look for "close but not cigar"):

      http://mail.openjdk.java.net/pipermail/hotspot-dev/2015-February/017194.html

      Perhaps the memory barriers inserted into constructor calls by Parse::do_exits should be gated on whether the object has escaped or not.

            xliu Xin Liu
            jrose John Rose
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: