8243848: Shenandoah: Windows build fails after JDK-8239786
Reviewed-by: rkennke, stuefe
This commit is contained in:
parent
b723b94614
commit
04ae3fd603
@ -372,7 +372,7 @@ jint ShenandoahHeap::initialize() {
|
||||
}
|
||||
|
||||
_monitoring_support = new ShenandoahMonitoringSupport(this);
|
||||
_phase_timings = new ShenandoahPhaseTimings();
|
||||
_phase_timings = new ShenandoahPhaseTimings(max_workers());
|
||||
ShenandoahStringDedup::initialize();
|
||||
ShenandoahCodeRoots::initialize();
|
||||
|
||||
|
@ -47,8 +47,8 @@ const char* ShenandoahPhaseTimings::_phase_names[] = {
|
||||
|
||||
#undef GC_PHASE_DECLARE_NAME
|
||||
|
||||
ShenandoahPhaseTimings::ShenandoahPhaseTimings() {
|
||||
_max_workers = MAX2(ConcGCThreads, ParallelGCThreads);
|
||||
ShenandoahPhaseTimings::ShenandoahPhaseTimings(uint max_workers) :
|
||||
_max_workers(max_workers) {
|
||||
assert(_max_workers > 0, "Must have some GC threads");
|
||||
|
||||
// Initialize everything to sane defaults
|
||||
@ -182,7 +182,7 @@ void ShenandoahPhaseTimings::print_cycle_on(outputStream* out) const {
|
||||
out->print(SHENANDOAH_PHASE_NAME_FORMAT " " SHENANDOAH_US_TIME_FORMAT " us", _phase_names[i], v);
|
||||
if (_worker_data[i] != NULL) {
|
||||
out->print(", workers (us): ");
|
||||
for (size_t c = 0; c < _max_workers; c++) {
|
||||
for (uint c = 0; c < _max_workers; c++) {
|
||||
double tv = _worker_data[i]->get(c);
|
||||
if (tv != ShenandoahWorkerData::uninitialized()) {
|
||||
out->print(SHENANDOAH_US_WORKER_TIME_FORMAT ", ", tv * 1000000.0);
|
||||
|
@ -178,7 +178,7 @@ public:
|
||||
#undef GC_PHASE_DECLARE_ENUM
|
||||
|
||||
private:
|
||||
size_t _max_workers;
|
||||
uint _max_workers;
|
||||
double _cycle_data[_num_phases];
|
||||
HdrSeq _global_data[_num_phases];
|
||||
static const char* _phase_names[_num_phases];
|
||||
@ -196,7 +196,7 @@ private:
|
||||
void set_cycle_data(Phase phase, double time);
|
||||
|
||||
public:
|
||||
ShenandoahPhaseTimings();
|
||||
ShenandoahPhaseTimings(uint _max_workers);
|
||||
|
||||
void record_phase_time(Phase phase, double time);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user