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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-genzgc
    • repo-genzgc
    • 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

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

              Created:
              Updated:
              Resolved: