JDK-8225484 : Investigate removal of survivor rate groups for survivor regions
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 13
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-06-07
  • Updated: 2019-11-14
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.
Other
tbdUnresolved
Related Reports
Blocks :  
Blocks :  
Relates :  
Description
Survivor rate groups are used by G1 to determine how many objects has been survived for a given region allocated at time X during mutator time.

I.e. we track copied objects for the first region allocated, for the second, third and so on, and track the amount of objects that had to be copied around, assuming that this value will stay around the same over time.

We do that both for eden and survivor regions.

While above assumption seems valid for eden regions as they are newly allocated each time, it is unlikely that the assumption holds for survivor regions - survivor regions contents are objects with random age as they are copied without regard to their original age to these regions. So a survivor region filled in gc X may have (and likely has) a completely different object composition (in terms of age) than a survivor region at gc X+1.

The age in the objects should be sufficient to determine object death rates within survivors.

Investigate removing region based survivor rate tracking for survivor regions, and find alternatives (i.e. age table) any use of that data for prediction.

Removing this tracking can be useful for simplifying code e.g. for JDK-8220089.
Comments
A better approach seems to be to measure overall survival rate of objects in survivor and use a predictor trained on that, applying that prediction on the whole survivor at once to get a number of bytes to copy. This only needs only that predictor, the previous and current size of survivor space, and no per-region "survivor surv rate".
01-07-2019