JDK-8219232 : Unit of concurrent active time logging is wrong
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9,10,11,12,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-02-18
  • Updated: 2019-02-27
  • Resolved: 2019-02-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13 b09Fixed
Related Reports
Relates :  
Description
The output prints "ms" as unit but the value is in seconds:
http://hg.openjdk.java.net/jdk/jdk/file/b776653628c5/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp#l2764
Comments
diff -r 2a78b2963793 src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp --- a/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp Wed Feb 13 13:27:17 2019 +0100 +++ b/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp Mon Feb 18 15:05:56 2019 +0100 @@ -2761,7 +2761,7 @@ CMSPhaseAccounting::~CMSPhaseAccounting() { _collector->gc_timer_cm()->register_gc_concurrent_end(); _collector->stopTimer(); - log_debug(gc)("Concurrent active time: %.3fms", TimeHelper::counter_to_seconds(_collector->timerTicks())); + log_debug(gc)("Concurrent active time: %.3fms", TimeHelper::counter_to_millis(_collector->timerTicks())); log_trace(gc)(" (CMS %s yielded %d times)", _title, _collector->yields()); }
18-02-2019