Skip to content
Permalink
Browse files
8277825: Remove unused ReferenceProcessorPhaseTimes::_sub_phases_tota…
…l_time_ms

Reviewed-by: tschatzl
  • Loading branch information
albertnetymk committed Nov 25, 2021
1 parent f788834 commit 987992042454f92936d3efbd01e7beb921e3b70e
Showing 2 changed files with 0 additions and 17 deletions.
@@ -200,7 +200,6 @@ void ReferenceProcessorPhaseTimes::set_phase_time_ms(ReferenceProcessor::RefProc
void ReferenceProcessorPhaseTimes::reset() {
for (int i = 0; i < ReferenceProcessor::RefSubPhaseMax; i++) {
_sub_phases_worker_time_sec[i]->reset();
_sub_phases_total_time_ms[i] = uninitialized();
}

for (int i = 0; i < ReferenceProcessor::RefPhaseMax; i++) {
@@ -227,17 +226,6 @@ ReferenceProcessorPhaseTimes::~ReferenceProcessorPhaseTimes() {
delete _soft_weak_final_refs_phase_worker_time_sec;
}

double ReferenceProcessorPhaseTimes::sub_phase_total_time_ms(ReferenceProcessor::RefProcSubPhases sub_phase) const {
ASSERT_SUB_PHASE(sub_phase);
return _sub_phases_total_time_ms[sub_phase];
}

void ReferenceProcessorPhaseTimes::set_sub_phase_total_phase_time_ms(ReferenceProcessor::RefProcSubPhases sub_phase,
double time_ms) {
ASSERT_SUB_PHASE(sub_phase);
_sub_phases_total_time_ms[sub_phase] = time_ms;
}

void ReferenceProcessorPhaseTimes::add_ref_cleared(ReferenceType ref_type, size_t count) {
ASSERT_REF_TYPE(ref_type);
Atomic::add(&_ref_cleared[ref_type_2_index(ref_type)], count, memory_order_relaxed);
@@ -41,8 +41,6 @@ class ReferenceProcessorPhaseTimes : public CHeapObj<mtGC> {

// Records per thread time information of each sub phase.
WorkerDataArray<double>* _sub_phases_worker_time_sec[ReferenceProcessor::RefSubPhaseMax];
// Total time of each sub phase.
double _sub_phases_total_time_ms[ReferenceProcessor::RefSubPhaseMax];

// Records total elapsed time for each phase.
double _phases_time_ms[ReferenceProcessor::RefPhaseMax];
@@ -62,7 +60,6 @@ class ReferenceProcessorPhaseTimes : public CHeapObj<mtGC> {
GCTimer* _gc_timer;

double phase_time_ms(ReferenceProcessor::RefProcPhases phase) const;
double sub_phase_total_time_ms(ReferenceProcessor::RefProcSubPhases sub_phase) const;

double total_time_ms() const { return _total_time_ms; }

@@ -84,8 +81,6 @@ class ReferenceProcessorPhaseTimes : public CHeapObj<mtGC> {
WorkerDataArray<double>* sub_phase_worker_time_sec(ReferenceProcessor::RefProcSubPhases phase) const;
void set_phase_time_ms(ReferenceProcessor::RefProcPhases phase, double par_phase_time_ms);

void set_sub_phase_total_phase_time_ms(ReferenceProcessor::RefProcSubPhases sub_phase, double ref_proc_time_ms);

void set_total_time_ms(double total_time_ms) { _total_time_ms = total_time_ms; }

void add_ref_cleared(ReferenceType ref_type, size_t count);

1 comment on commit 9879920

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 9879920 Nov 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.