JDK-8165576 : Time base of G1 collector should not be seconds stored in doubles
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-09-07
  • Updated: 2019-10-01
  • Resolved: 2019-10-01
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
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
Currently the time base for the g1 collector (and others?) is seconds, stored in double values.

Seconds is too rough as a base unit, further calculations on doubles tend to accumulate rounding error due to finite representation.

Change the time base for all values to something like nanoseconds, and use integers to store their values. Only when necessary round to whatever desired output accuracy.

There may be need to file similar CRs for the other collectors.