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

Consider using a StoreStore barrier instead of Release barrier on ctor exit

XMLWordPrintable

    • b20

      C2 currently adds a MemBarRelease node at the end of <init> methods that write final fields. On some platforms such as aarch64, using MemBarStoreStore instead can increase performance (I see a 15% improvement on Renaissance-ChiSquare and 12% on Renaissance-ParMnemonics).

      There was an earlier discussion on this topic here:
      https://mail.openjdk.org/pipermail/jmm-dev/2016-November/000379.html

            jcao Joshua Cao
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: