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

ZGC: Wrong second to millisecond conversion in ZCollectedHeap::millis_since_last_gc()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • gc

      ```
      jlong ZCollectedHeap::millis_since_last_gc() {
        return ZStatCycle::time_since_last() / MILLIUNITS;
      }
      ```
      `time_since_last()` returns the number in seconds, so the conversion should use `*`.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: