comparison src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp @ 20214:8cc89a893545

8039596: Remove HeapRegionRemSet::clear_incoming_entry Summary: The mentioned method is never used and out of date. So it is removed. Reviewed-by: mgerdin, brutisso
author tschatzl
date Mon, 21 Jul 2014 09:40:19 +0200
parents ff7b317d2af8
children 828056cf311f
comparison
equal deleted inserted replaced
20213:ff7b317d2af8 20214:8cc89a893545
768 _n_coarse_entries = 0; 768 _n_coarse_entries = 0;
769 769
770 clear_fcc(); 770 clear_fcc();
771 } 771 }
772 772
773 void OtherRegionsTable::clear_incoming_entry(HeapRegion* from_hr) {
774 MutexLockerEx x(_m, Mutex::_no_safepoint_check_flag);
775 size_t hrs_ind = (size_t) from_hr->hrs_index();
776 size_t ind = hrs_ind & _mod_max_fine_entries_mask;
777 if (del_single_region_table(ind, from_hr)) {
778 assert(!_coarse_map.at(hrs_ind), "Inv");
779 } else {
780 _coarse_map.par_at_put(hrs_ind, 0);
781 }
782 // Check to see if any of the fcc entries come from here.
783 uint hr_ind = hr()->hrs_index();
784 for (uint tid = 0; tid < HeapRegionRemSet::num_par_rem_sets(); tid++) {
785 int fcc_ent = FromCardCache::at(tid, hr_ind);
786 if (fcc_ent != FromCardCache::InvalidCard) {
787 HeapWord* card_addr = (HeapWord*)
788 (uintptr_t(fcc_ent) << CardTableModRefBS::card_shift);
789 if (hr()->is_in_reserved(card_addr)) {
790 // Clear the from card cache.
791 FromCardCache::set(tid, hr_ind, FromCardCache::InvalidCard);
792 }
793 }
794 }
795 }
796
797 bool OtherRegionsTable::del_single_region_table(size_t ind, 773 bool OtherRegionsTable::del_single_region_table(size_t ind,
798 HeapRegion* hr) { 774 HeapRegion* hr) {
799 assert(0 <= ind && ind < _max_fine_entries, "Preconditions."); 775 assert(0 <= ind && ind < _max_fine_entries, "Preconditions.");
800 PerRegionTable** prev_addr = &_fine_grain_regions[ind]; 776 PerRegionTable** prev_addr = &_fine_grain_regions[ind];
801 PerRegionTable* prt = *prev_addr; 777 PerRegionTable* prt = *prev_addr;