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

Factor G1 heap sizing code out of the G1CollectorPolicy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • gc
    • b115

      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.

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

              Created:
              Updated:
              Resolved: