JDK-8217330 : Split G1CollectionSetChooser into collection set candidate container and the chooser algorithm
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-01-17
  • Updated: 2019-02-14
  • Resolved: 2019-02-08
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 13
13 b08Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Current G1CollectionSetChooser contains both the collection set candidates (i.e. the set of old gen candidate regions) and the algorithm (and various helper class members) to select these regions from the set of HeapRegions.

That makes the G1CollectionSetChooser quite a bit hard to read. Ideally something like

G1CollectionSetCandidates candidates = G1CollectionSetChooser::select_candidates(...);

would be much easier to read.

Also remove the really hacky use of GrowableArray.