< prev index next >
src/hotspot/share/gc/g1/g1GCPhaseTimes.hpp
Print this page
rev 49826 : imported patch 6672778-partial-queue-trimming
rev 49828 : imported patch 6672778-stefanj-review
rev 49829 : imported patch 6672778-inconsistent-time-fixes
*** 1,7 ****
/*
! * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 29,38 ****
--- 29,39 ----
#include "logging/logLevel.hpp"
#include "memory/allocation.hpp"
#include "utilities/macros.hpp"
class LineBuffer;
+ class G1ParScanThreadState;
class STWGCTimer;
template <class T> class WorkerDataArray;
class G1GCPhaseTimes : public CHeapObj<mtGC> {
*** 196,205 ****
--- 197,208 ----
void record_time_secs(GCParPhases phase, uint worker_i, double secs);
// add a number of seconds to a phase
void add_time_secs(GCParPhases phase, uint worker_i, double secs);
+ void record_or_add_objcopy_time_secs(uint worker_i, double secs);
+
void record_thread_work_item(GCParPhases phase, uint worker_i, size_t count, uint index = 0);
// return the average time for a phase in milliseconds
double average_time_ms(GCParPhases phase);
*** 367,382 ****
}
ReferenceProcessorPhaseTimes* ref_phase_times() { return &_ref_phase_times; }
};
! class G1GCParPhaseTimesTracker : public StackObj {
! double _start_time;
G1GCPhaseTimes::GCParPhases _phase;
G1GCPhaseTimes* _phase_times;
uint _worker_id;
public:
G1GCParPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1GCPhaseTimes::GCParPhases phase, uint worker_id);
! ~G1GCParPhaseTimesTracker();
};
#endif // SHARE_VM_GC_G1_G1GCPHASETIMES_HPP
--- 370,407 ----
}
ReferenceProcessorPhaseTimes* ref_phase_times() { return &_ref_phase_times; }
};
! class G1EvacPhaseWithTrimTimeTracker : public StackObj {
! G1ParScanThreadState* _pss;
! Ticks _start;
!
! Tickspan& _total_time;
! Tickspan& _trim_time;
! public:
! G1EvacPhaseWithTrimTimeTracker(G1ParScanThreadState* pss, Tickspan& total_time, Tickspan& trim_time);
! ~G1EvacPhaseWithTrimTimeTracker();
! };
!
! class G1GCParPhaseTimesTracker : public CHeapObj<mtGC> {
! protected:
! Ticks _start_time;
G1GCPhaseTimes::GCParPhases _phase;
G1GCPhaseTimes* _phase_times;
uint _worker_id;
public:
G1GCParPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1GCPhaseTimes::GCParPhases phase, uint worker_id);
! virtual ~G1GCParPhaseTimesTracker();
! };
!
! class G1EvacPhaseTimesTracker : public G1GCParPhaseTimesTracker {
! Tickspan _total_time;
! Tickspan _trim_time;
!
! G1EvacPhaseWithTrimTimeTracker _trim_tracker;
! public:
! G1EvacPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1ParScanThreadState* pss, G1GCPhaseTimes::GCParPhases phase, uint worker_id);
! virtual ~G1EvacPhaseTimesTracker();
};
#endif // SHARE_VM_GC_G1_G1GCPHASETIMES_HPP
< prev index next >