equal
deleted
inserted
replaced
125 private: |
125 private: |
126 HeapWord** _scan_top; |
126 HeapWord** _scan_top; |
127 public: |
127 public: |
128 G1ResetScanTopClosure(HeapWord** scan_top) : _scan_top(scan_top) { } |
128 G1ResetScanTopClosure(HeapWord** scan_top) : _scan_top(scan_top) { } |
129 |
129 |
130 virtual bool doHeapRegion(HeapRegion* r) { |
130 virtual bool do_heap_region(HeapRegion* r) { |
131 uint hrm_index = r->hrm_index(); |
131 uint hrm_index = r->hrm_index(); |
132 if (!r->in_collection_set() && r->is_old_or_humongous()) { |
132 if (!r->in_collection_set() && r->is_old_or_humongous()) { |
133 _scan_top[hrm_index] = r->top(); |
133 _scan_top[hrm_index] = r->top(); |
134 } else { |
134 } else { |
135 _scan_top[hrm_index] = r->bottom(); |
135 _scan_top[hrm_index] = r->bottom(); |
347 void G1ScanRSForRegionClosure::claim_card(size_t card_index, const uint region_idx_for_card){ |
347 void G1ScanRSForRegionClosure::claim_card(size_t card_index, const uint region_idx_for_card){ |
348 _ct_bs->set_card_claimed(card_index); |
348 _ct_bs->set_card_claimed(card_index); |
349 _scan_state->add_dirty_region(region_idx_for_card); |
349 _scan_state->add_dirty_region(region_idx_for_card); |
350 } |
350 } |
351 |
351 |
352 bool G1ScanRSForRegionClosure::doHeapRegion(HeapRegion* r) { |
352 bool G1ScanRSForRegionClosure::do_heap_region(HeapRegion* r) { |
353 assert(r->in_collection_set(), "should only be called on elements of CS."); |
353 assert(r->in_collection_set(), "should only be called on elements of CS."); |
354 uint region_idx = r->hrm_index(); |
354 uint region_idx = r->hrm_index(); |
355 |
355 |
356 if (_scan_state->iter_is_complete(region_idx)) { |
356 if (_scan_state->iter_is_complete(region_idx)) { |
357 return false; |
357 return false; |
520 public: |
520 public: |
521 G1ScrubRSClosure(G1CardLiveData* live_data) : |
521 G1ScrubRSClosure(G1CardLiveData* live_data) : |
522 _g1h(G1CollectedHeap::heap()), |
522 _g1h(G1CollectedHeap::heap()), |
523 _live_data(live_data) { } |
523 _live_data(live_data) { } |
524 |
524 |
525 bool doHeapRegion(HeapRegion* r) { |
525 bool do_heap_region(HeapRegion* r) { |
526 if (!r->is_continues_humongous()) { |
526 if (!r->is_continues_humongous()) { |
527 r->rem_set()->scrub(_live_data); |
527 r->rem_set()->scrub(_live_data); |
528 } |
528 } |
529 return false; |
529 return false; |
530 } |
530 } |