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

Separate G1 specific policy code from the CollectorPolicy class hierarchy

XMLWordPrintable

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

      G1 has traditionally put all its policy related code in G1CollectorPolicy.
      This is somewhat problematic since the JVM heap bootstrap process is designed to first create a CollectorPolicy and then pass that to the CollectedHeap constructor.
      To make it easier to understand which parts of the G1 policy are related to pre-heap-initialization and which parts are related to the runtime policy decisions I suggest that this is broken up into two classes:
      G1CollectorPolicy which implements the CollectorPolicy interface
      G1Policy which is the implementation of the runtime policy for the G1 collector.

      This will also help with future projects attempting to simplify heap initialization by removing the dependency on CollectorPolicy for pre-heap-initialization.

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

              Created:
              Updated:
              Resolved: