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

Use concrete Generation classes in SerialHeap and CMSHeap

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • hotspot
    • None
    • gc
    • b13

      GenCollectedHeap contains fields for the _young_gen and _old_gen, with associated young_gen() and old_gen() accessors. These accessors return Generation*s.

      These Generations are always DefNewGeneration and TenuredGeneration for the Serial GC, and ParNewGeneration and ConcurrentMarkSweepGeneration for CMS.

      I propose that we expose two new accessors that return the concrete Generation classes in SerialHeap and CMSHeap.

      Working with these concrete classes will allow us to easier split the Serial and CMS code. Specifically, this makes it possible to remove ALL_SINCE_SAVE_MARKS_CLOSURES and associated macros. See: JDK-8202641

            stefank Stefan Karlsson
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: