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

Cleanup initialization of GCPolicyCounters

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b120

      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.

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

              Created:
              Updated:
              Resolved: