Generational ZGC: Elide barriers on variable array accesses after array allocations

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • repo-genzgc
    • Affects Version/s: repo-genzgc
    • Component/s: hotspot
    • gc

      Extend C2's barrier elision so that variable array accesses (array accesses with unknown offset at compile-time) are elided when they are dominated by the array's allocation and no safepoint is present in between, like in this example:

      Element[] a = new Element[10]; // allocation
      a[i] = e; // variable array access: barrier can be elided

            Assignee:
            Roberto Castaneda Lozano
            Reporter:
            Roberto Castaneda Lozano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: