< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahPhaseTimings.cpp
Print this page
rev 58201 : 8240216: Shenandoah: remove ShenandoahTerminationTrace
Reviewed-by: XXX
@@ -42,11 +42,10 @@
#undef GC_PHASE_DECLARE_NAME
ShenandoahPhaseTimings::ShenandoahPhaseTimings() : _policy(NULL) {
uint max_workers = MAX2(ConcGCThreads, ParallelGCThreads);
_worker_times = new ShenandoahWorkerTimings(max_workers);
- _termination_times = new ShenandoahTerminationTimings(max_workers);
_policy = ShenandoahHeap::heap()->shenandoah_policy();
assert(_policy != NULL, "Can not be NULL");
}
void ShenandoahPhaseTimings::record_phase_start(Phase phase) {
@@ -163,32 +162,5 @@
void ShenandoahWorkerTimings::print() const {
for (uint i = 0; i < ShenandoahPhaseTimings::GCParPhasesSentinel; i++) {
_gc_par_phases[i]->print_summary_on(tty);
}
}
-
-
-ShenandoahTerminationTimings::ShenandoahTerminationTimings(uint max_gc_threads) {
- _gc_termination_phase = new WorkerDataArray<double>("Task Termination (ms):", max_gc_threads);
-}
-
-void ShenandoahTerminationTimings::record_time_secs(uint worker_id, double secs) {
- if (_gc_termination_phase->get(worker_id) == WorkerDataArray<double>::uninitialized()) {
- _gc_termination_phase->set(worker_id, secs);
- } else {
- // worker may re-enter termination phase
- _gc_termination_phase->add(worker_id, secs);
- }
-}
-
-void ShenandoahTerminationTimings::print() const {
- _gc_termination_phase->print_summary_on(tty);
-}
-
-double ShenandoahTerminationTimings::average() const {
- return _gc_termination_phase->average();
-}
-
-void ShenandoahTerminationTimings::reset() {
- _gc_termination_phase->reset();
-}
-
< prev index next >