JDK-8208390 : G1 should always use ticks as internal time base instead of double
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 11,12
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2018-07-27
  • Updated: 2020-08-17
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 :  
Duplicate :  
Relates :  
Relates :  
Description
Currently G1 uses normal doubles to hold time spans and points in time.

This has several disadvantages:
- there is no compiler help in detecting errors (matching units) when using them in calculations.
- since the time unit is not stored anywhere the code it is encoded in the variable and method names. This clutters the code and does not help with unit safety.

The suggestion here is to have G1 the Ticks/Tickspan type to store time and time spans instead.