JDK-8250955 : ZGC: Wrong second to millisecond conversion in ZCollectedHeap::millis_since_last_gc()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2020-08-03
  • Updated: 2020-08-04
  • Resolved: 2020-08-04
Related Reports
Duplicate :  
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 `*`.