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

Cleanup initialization of GCPolicyCounters

    Details

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

      Description

      Move GCPolicyCounters out from the CollectorPolicy base class to GenCollectorPolicy.
      For the G1 code it's more appropriately located in the G1Policy object instead of the G1CollectorPolicy and ParallelScavenge does not even initialize the field in its CollectorPolicy instance.

      All callers of the CollectorPolicy::counters method are in GenCollectedHeap related code and are adjusted to access it through the GCH::gen_policy method.

        Attachments

          Activity

            People

            • Assignee:
              mgerdin Mikael Gerdin (Inactive)
              Reporter:
              mgerdin Mikael Gerdin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: