comparison src/hotspot/share/gc/g1/g1RemSetSummary.cpp @ 47692:4925ee84b4ac

8140255: Move the management of G1YoungRemSetSamplingThread from G1ConcurrentRefine Reviewed-by: sjohanss, sangheki
author tschatzl
date Mon, 06 Nov 2017 14:25:18 +0100
parents a77a7d3bc4f6
children 5caa1d5f74c1
comparison
equal deleted inserted replaced
1:59c6665f82d8 2:7b84903438b1
57 _num_processed_buf_mutator = dcqs.processed_buffers_mut(); 57 _num_processed_buf_mutator = dcqs.processed_buffers_mut();
58 _num_processed_buf_rs_threads = dcqs.processed_buffers_rs_thread(); 58 _num_processed_buf_rs_threads = dcqs.processed_buffers_rs_thread();
59 59
60 _num_coarsenings = HeapRegionRemSet::n_coarsenings(); 60 _num_coarsenings = HeapRegionRemSet::n_coarsenings();
61 61
62 G1ConcurrentRefine * cr = G1CollectedHeap::heap()->concurrent_refine(); 62 G1CollectedHeap* g1h = G1CollectedHeap::heap();
63 G1ConcurrentRefine* cg1r = g1h->concurrent_refine();
63 if (_rs_threads_vtimes != NULL) { 64 if (_rs_threads_vtimes != NULL) {
64 GetRSThreadVTimeClosure p(this); 65 GetRSThreadVTimeClosure p(this);
65 cr->worker_threads_do(&p); 66 cg1r->threads_do(&p);
66 } 67 }
67 set_sampling_thread_vtime(cr->sampling_thread()->vtime_accum()); 68 set_sampling_thread_vtime(g1h->sampling_thread()->vtime_accum());
68 } 69 }
69 70
70 void G1RemSetSummary::set_rs_thread_vtime(uint thread, double value) { 71 void G1RemSetSummary::set_rs_thread_vtime(uint thread, double value) {
71 assert(_rs_threads_vtimes != NULL, "just checking"); 72 assert(_rs_threads_vtimes != NULL, "just checking");
72 assert(thread < _num_vtimes, "just checking"); 73 assert(thread < _num_vtimes, "just checking");