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

Make CMS use SuspendibleThreadSet for safepoint synchronization

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • CPU:
      generic
    • OS:
      generic

      Description

      Currently, CMS uses its own ways to synchronize its worker threads with safepoints. There is a better generic way to do that now (SuspendibleThreadSet) and CMS should probably use that too. That would simplify the GC-runtime interface.

        Issue Links

          Activity

          Hide
          rkennke Roman Kennke added a comment -
          The cooperation between the CMS thread and the VM thread does more than the SuspendibleThreadSet is capable of: in particular it allows the VMThread to suspend and hand control back to the CMS thread. The complexity of matching CMS behaviour seems to risky, and the API in CollectedHeap to synchronize GC threads with the VMThread seems good enough to isolate CMS special requirements. Closing this as WONTFIX.
          Show
          rkennke Roman Kennke added a comment - The cooperation between the CMS thread and the VM thread does more than the SuspendibleThreadSet is capable of: in particular it allows the VMThread to suspend and hand control back to the CMS thread. The complexity of matching CMS behaviour seems to risky, and the API in CollectedHeap to synchronize GC threads with the VMThread seems good enough to isolate CMS special requirements. Closing this as WONTFIX.

            People

            • Assignee:
              rkennke Roman Kennke
              Reporter:
              rkennke Roman Kennke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: