Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8208390

G1 should always use ticks as internal time base instead of double

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 11, 12
    • hotspot
    • gc

      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.

            Unassigned Unassigned
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: