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

ZGC: Change ZResurrection to use Atomic::load/store

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b25

      Description

      Previously, ZResurrection::is_blocked() and ZResurrection::unblock() used loadload and storestore barriers to synchronize between the GC and mutator load barriers.

      JDK-8230661 changed so that we always perform a handshake before the ZResurrection::unblock() call.

      After that change we can rely on the handshake to perform the necessary synchronization, and we can change the implementation to use Atomic::load and Atomic::store.

        Attachments

          Activity

            People

            • Assignee:
              stefank Stefan Karlsson
              Reporter:
              stefank Stefan Karlsson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: