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

Rename G1 state variable to be meaningful

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc

      Some of the core G1 state variables in G1CollectorState are ambiguously named:

      gcs_are_young, last_young_gc, last_gc_was_young

      Problems:
       - All gcs include the young gen, so "young" is meaningless.
       - "young" is shorthand for "fully young" (which confusing with "full
       gc"), or "young only", but the "only" is both silent and invisible.
       "last" is used in one variable to mean "previous", and in another to mean
       "ultimate, maybe". "last_gc_was_young" vs. "last_young_gc".

      JDK-8080226 (Replace collector state booleans with explicit state variable(s)?) depends on this.

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

              Created:
              Updated:
              Resolved: