1145 if (_initial_evacuation && G1HotCardCache::default_use_cache()) { |
1145 if (_initial_evacuation && G1HotCardCache::default_use_cache()) { |
1146 assert(merge_remset_phase == G1GCPhaseTimes::MergeRS, "Wrong merge phase"); |
1146 assert(merge_remset_phase == G1GCPhaseTimes::MergeRS, "Wrong merge phase"); |
1147 G1GCParPhaseTimesTracker x(p, G1GCPhaseTimes::MergeHCC, worker_id); |
1147 G1GCParPhaseTimesTracker x(p, G1GCPhaseTimes::MergeHCC, worker_id); |
1148 G1MergeLogBufferCardsClosure cl(g1h, _scan_state); |
1148 G1MergeLogBufferCardsClosure cl(g1h, _scan_state); |
1149 g1h->iterate_hcc_closure(&cl, worker_id); |
1149 g1h->iterate_hcc_closure(&cl, worker_id); |
|
1150 |
|
1151 p->record_thread_work_item(G1GCPhaseTimes::MergeHCC, worker_id, cl.cards_dirty(), G1GCPhaseTimes::MergeHCCDirtyCards); |
|
1152 p->record_thread_work_item(G1GCPhaseTimes::MergeHCC, worker_id, cl.cards_skipped(), G1GCPhaseTimes::MergeHCCSkippedCards); |
1150 } |
1153 } |
1151 |
1154 |
1152 // Now apply the closure to all remaining log entries. |
1155 // Now apply the closure to all remaining log entries. |
1153 if (_initial_evacuation) { |
1156 if (_initial_evacuation) { |
1154 assert(merge_remset_phase == G1GCPhaseTimes::MergeRS, "Wrong merge phase"); |
1157 assert(merge_remset_phase == G1GCPhaseTimes::MergeRS, "Wrong merge phase"); |