--- a/src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp Tue May 15 11:28:29 2018 -0700
+++ b/src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp Tue May 15 20:24:34 2018 +0200
@@ -488,7 +488,7 @@
G1GCParPhaseTimesTracker::~G1GCParPhaseTimesTracker() {
if (_phase_times != NULL) {
- _phase_times->record_time_secs(_phase, _worker_id, TicksToTimeHelper::seconds(Ticks::now() - _start_time));
+ _phase_times->record_time_secs(_phase, _worker_id, (Ticks::now() - _start_time).seconds());
}
}
@@ -506,7 +506,7 @@
if (_phase_times != NULL) {
// Exclude trim time by increasing the start time.
_start_time += _trim_time;
- _phase_times->record_or_add_objcopy_time_secs(_worker_id, TicksToTimeHelper::seconds(_trim_time));
+ _phase_times->record_or_add_objcopy_time_secs(_worker_id, _trim_time.seconds());
}
}