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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      ```
      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 `*`.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: