< prev index next >

src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp

Print this page

        

*** 573,586 **** if (_cur_verify_after_time_ms > 0.0) { print_stats(2, "Verify After", _cur_verify_after_time_ms); } } ! G1GCParPhaseTimesTracker::G1GCParPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1GCPhaseTimes::GCParPhases phase, uint worker_id) : ! _phase_times(phase_times), _phase(phase), _worker_id(worker_id) { if (_phase_times != NULL) { _start_time = os::elapsedTime(); } } G1GCParPhaseTimesTracker::~G1GCParPhaseTimesTracker() { if (_phase_times != NULL) { --- 573,588 ---- if (_cur_verify_after_time_ms > 0.0) { print_stats(2, "Verify After", _cur_verify_after_time_ms); } } ! G1GCParPhaseTimesTracker::G1GCParPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1GCPhaseTimes::GCParPhases phase) : ! _phase_times(phase_times), _phase(phase) { if (_phase_times != NULL) { _start_time = os::elapsedTime(); + WorkerThread* current_worker = Thread::current()->as_Worker_thread(); + _worker_id = current_worker->id(); } } G1GCParPhaseTimesTracker::~G1GCParPhaseTimesTracker() { if (_phase_times != NULL) {
< prev index next >