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

REDO - Remove the generations array

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b54

      Backports

        Description

        Today GenCollectedHeap contains an array with room for ten generations, and there is plenty of code that is written in a very generic way to allow for this many generations. However, there is also plenty of code that assumes we only use two generations and any attempt to use more would fail with the current code. In practice we only use two generations and there are no reason to maintain the illusion that we could use more.

        To simplify the code the array should be removed and we should be explicit in all code accessing the generations about which generation we actually are using.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jwilhelm Jesper Wilhelmsson
                  Reporter:
                  jwilhelm Jesper Wilhelmsson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: