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

G1: Replace collector state booleans with explicit state variable(s)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • hotspot
    • gc

      The current state of the G1 collector is encapsulated in the g1CollectorState class, but the state is scattered over a set of 12 booleans. The actual number of legal states is less than 10, so there are 4000+ illegal combinations of those booleans :-)

      The state should be replaced by one (or a few) proper state variables with a proper state machine managing legal transitions between states.

            Unassigned Unassigned
            drwhite Derek White
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 2 weeks
                2w
                Remaining:
                Remaining Estimate - 2 weeks
                2w
                Logged:
                Time Spent - Not Specified
                Not Specified