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

G1: Improve G1BarrierSet::enqueue performance

XMLWordPrintable

    • gc
    • b17

        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.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: