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

Remove the generations array

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • hotspot
    • None
    • gc
    • b38
    • Fix failed

        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.

              jwilhelm Jesper Wilhelmsson
              jwilhelm Jesper Wilhelmsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: