JDK-8228505 : G1 adds old gen region rs lengths to _young_rs_length
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 14
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2019-07-23
  • Updated: 2019-07-26
  • Resolved: 2019-07-26
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 14
14Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The max_rs_length value and related predictor are used to predict total young gen remembered set length.

During the Free CSet phase we add not only young gen regions to the local total that is later assigned to max_rs_length, but also old gen region remembered set sizes.

Fortunately G1 does not (correctly) use this resulting value to update predictions. It is just wasted effort.

Fix this.
Comments
This change has to go with JDK-8227739 because otherwise we would temporarily need both total (young and old) and young gen only remembered set entry sums.
26-07-2019