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

ZGC: avoid over-unrolling due to hidden barrier size

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b06

      The C2 loop unrolling heuristic takes into account the size of the loop body (in number of Ideal nodes) to decide whether to unroll it or not. In the late barrier expansion model used by ZGC, the size of LoadP, StoreP, and atomic nodes requiring barrier code is underestimated because barriers are hidden from C2. This can lead to over-unrolling.

      This RFE proposes extending the C2 Access API to provide C2 with an estimation of the number of Ideal nodes corresponding to each memory access barrier.

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

              Created:
              Updated:
              Resolved: