8344798: Shenandoah: Use more descriptive variable names in shPhaseTimings.cpp
Reviewed-by: ysr
This commit is contained in:
parent
c199f5326b
commit
db44e97c5d
@ -185,33 +185,33 @@ void ShenandoahPhaseTimings::flush_par_workers_to_cycle() {
|
|||||||
for (uint pi = 0; pi < _num_phases; pi++) {
|
for (uint pi = 0; pi < _num_phases; pi++) {
|
||||||
Phase phase = Phase(pi);
|
Phase phase = Phase(pi);
|
||||||
if (is_worker_phase(phase)) {
|
if (is_worker_phase(phase)) {
|
||||||
double s = uninitialized();
|
double sum = uninitialized();
|
||||||
for (uint i = 1; i < _num_par_phases; i++) {
|
for (uint i = 1; i < _num_par_phases; i++) {
|
||||||
ShenandoahWorkerData* wd = worker_data(phase, ParPhase(i));
|
ShenandoahWorkerData* wd = worker_data(phase, ParPhase(i));
|
||||||
double ws = uninitialized();
|
double worker_sum = uninitialized();
|
||||||
for (uint c = 0; c < _max_workers; c++) {
|
for (uint c = 0; c < _max_workers; c++) {
|
||||||
double v = wd->get(c);
|
double worker_time = wd->get(c);
|
||||||
if (v != ShenandoahWorkerData::uninitialized()) {
|
if (worker_time != ShenandoahWorkerData::uninitialized()) {
|
||||||
if (ws == uninitialized()) {
|
if (worker_sum == uninitialized()) {
|
||||||
ws = v;
|
worker_sum = worker_time;
|
||||||
} else {
|
} else {
|
||||||
ws += v;
|
worker_sum += worker_time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ws != uninitialized()) {
|
if (worker_sum != uninitialized()) {
|
||||||
// add to each line in phase
|
// add to each line in phase
|
||||||
set_cycle_data(Phase(phase + i + 1), ws);
|
set_cycle_data(Phase(phase + i + 1), worker_sum);
|
||||||
if (s == uninitialized()) {
|
if (sum == uninitialized()) {
|
||||||
s = ws;
|
sum = worker_sum;
|
||||||
} else {
|
} else {
|
||||||
s += ws;
|
sum += worker_sum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (s != uninitialized()) {
|
if (sum != uninitialized()) {
|
||||||
// add to total for phase
|
// add to total for phase
|
||||||
set_cycle_data(Phase(phase + 1), s);
|
set_cycle_data(Phase(phase + 1), sum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user