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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • None
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: