JDK-8055702 : Remove the generations array
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-08-20
  • Updated: 2015-06-03
  • Resolved: 2014-10-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b38Fixed
Related Reports
Cloners :  
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.