src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp

changeset 9858
b985cbb00e68
parent 9478
f3108e56b502
child 9931
fd44df5e3bc3
     1.1 --- a/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp	Thu Aug 01 03:44:03 2019 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp	Mon Aug 12 18:30:40 2019 +0300
     1.3 @@ -583,13 +583,12 @@
     1.4  G1GCParPhaseTimesTracker::G1GCParPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1GCPhaseTimes::GCParPhases phase, uint worker_id) :
     1.5      _phase_times(phase_times), _phase(phase), _worker_id(worker_id) {
     1.6    if (_phase_times != NULL) {
     1.7 -    _start_time = os::elapsedTime();
     1.8 +    _start_time = Ticks::now();
     1.9    }
    1.10  }
    1.11  
    1.12  G1GCParPhaseTimesTracker::~G1GCParPhaseTimesTracker() {
    1.13    if (_phase_times != NULL) {
    1.14 -    _phase_times->record_time_secs(_phase, _worker_id, os::elapsedTime() - _start_time);
    1.15 +    _phase_times->record_time_secs(_phase, _worker_id, (Ticks::now() - _start_time).seconds());
    1.16    }
    1.17  }
    1.18 -

mercurial