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

Time base of G1 collector should not be seconds stored in doubles

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • tbd
    • 9
    • hotspot
    • gc

      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.

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

              Created:
              Updated:
              Resolved: