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

Generalize GC thread suspend/resume at safepoints

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b31

      Description

      When a safepoint is synchronized, GC threads might need to be suspended, and similarly when the safepoint is unsynchronized, GC might need to resume those threads.

      This is currently done in an ugly way where we check if we are using CMS or G1 and then go on to use their specific mechanisms.

      I propose there should be an interface between the safepoint synchronizer and the GC to generalize this behaviour.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eosterlund Erik Ă–sterlund
                Reporter:
                eosterlund Erik Ă–sterlund
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: