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

G1: Improve G1BarrierSet::enqueue performance

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 17, 18, 19
    • Fix Version/s: 19
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b17

      Description

      While looking at startup/warmup benchmarks for VarHandles, I noticed that G1BarrierSet::enqueue is not inlined and quite hot. Its uses also load the oop first, and then check if queues are active. This could be improved a bit.

      This only matters for the barrier paths that VM takes, which is the case for java.lang.invoke VM infra.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: