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

Factor G1 heap sizing code out of the G1CollectorPolicy

    Details

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

      Description

      The code responsible for determining the heap expansion amount is currently a part of G1CollectorPolicy. This functionality is completely independent of the other pieces of the general collector policy code and could therefore be factored out into a class of its own.

      This move keeps the G1CollectorPolicy code mostly responsible for things related to G1 garbage collections. One could of course imagine that there could be situations where the sizing of the heap is influenced by the collector policy but there is nothing preventing that with the new model. The only difference would be that there would be a need for clearer API for such influences.

        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: