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

Remove redundant barriers when final and stable fields written in ctor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 21
    • hotspot
    • b06
    • 9

      When the <init> method writes both a final and stable field, c2 emits a barrier for each. The performance difference can be seen in microbenchmarks such as org.openjdk.bench.java.lang.StringBuffers.substring on aarch64 hardware.

            Unassigned Unassigned
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: