equal
deleted
inserted
replaced
380 size_t G1RemSet::scan_rem_set(G1ParPushHeapRSClosure* oops_in_heap_closure, |
380 size_t G1RemSet::scan_rem_set(G1ParPushHeapRSClosure* oops_in_heap_closure, |
381 CodeBlobClosure* heap_region_codeblobs, |
381 CodeBlobClosure* heap_region_codeblobs, |
382 uint worker_i) { |
382 uint worker_i) { |
383 double rs_time_start = os::elapsedTime(); |
383 double rs_time_start = os::elapsedTime(); |
384 |
384 |
385 HeapRegion *startRegion = _g1->start_cset_region_for_worker(worker_i); |
|
386 |
|
387 G1ScanRSClosure cl(_scan_state, oops_in_heap_closure, heap_region_codeblobs, worker_i); |
385 G1ScanRSClosure cl(_scan_state, oops_in_heap_closure, heap_region_codeblobs, worker_i); |
388 _g1->collection_set_iterate_from(startRegion, &cl); |
386 _g1->collection_set_iterate_from(&cl, worker_i); |
389 |
387 |
390 double scan_rs_time_sec = (os::elapsedTime() - rs_time_start) - |
388 double scan_rs_time_sec = (os::elapsedTime() - rs_time_start) - |
391 cl.strong_code_root_scan_time_sec(); |
389 cl.strong_code_root_scan_time_sec(); |
392 |
390 |
393 _g1p->phase_times()->record_time_secs(G1GCPhaseTimes::ScanRS, worker_i, scan_rs_time_sec); |
391 _g1p->phase_times()->record_time_secs(G1GCPhaseTimes::ScanRS, worker_i, scan_rs_time_sec); |