src/hotspot/share/gc/g1/g1RemSetSummary.cpp
changeset 47790 4925ee84b4ac
parent 47789 a77a7d3bc4f6
child 47885 5caa1d5f74c1
equal deleted inserted replaced
47789:a77a7d3bc4f6 47790:4925ee84b4ac
    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");