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

Shenandoah: Optimize ShenandoahLock with TTAS

XMLWordPrintable

    • gc
    • b22

        JDK-8325587 made the contended lock acquisition as the CAS loop with backoffs. Unfortunately, for `SpinPause` path, we always do the CAS and then spin. This is not efficient, as CAS likely requests memory for ownership, which exacerbates the contention and makes the spin loop run longer before blocking.

        We should really use TTAS pattern there, like `Thread::SpinAcquire` does it.

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

                Created:
                Updated:
                Resolved: