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

Shenandoah: Improve lock contention during cleanup

XMLWordPrintable

    • gc
    • b19

      Immediately following certain GC safepoints (Final Mark and Final update refs), the GC contends aggressively for the heap lock with multiple mutator threads, each of which needs the heap lock in order to replenish its TLAB.

      A certain AWS service which runs with 32 physical cores, over 2,000 ready-to-run mutator threads, and a typical collection set of over 2,000 regions (all of which must be recycled at the end of Final Update Refs), has identified this contention for locks as a key cause for higher-than-desired latency.

      Careful batching of regions allows significant improvement to the efficiency of this contended lock resolution, which is manifest in much improved latency of customer metrics.

            kdnilsen Kelvin Nilsen
            kdnilsen Kelvin Nilsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: