Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp @ 17755:96b1c2e06e25
8027295: Free CSet takes ~50% of young pause time
Summary: Improve fast card cache iteration and avoid taking locks when freeing the collection set.
Reviewed-by: brutisso
author | tschatzl |
---|---|
date | Mon, 24 Mar 2014 15:30:36 +0100 |
parents | d7070f371770 |
children | ae7336d6337e |
comparison
equal
deleted
inserted
replaced
17754:d7070f371770 | 17755:96b1c2e06e25 |
---|---|
729 return PerRegionTable::fl_mem_size(); | 729 return PerRegionTable::fl_mem_size(); |
730 } | 730 } |
731 | 731 |
732 void OtherRegionsTable::clear_fcc() { | 732 void OtherRegionsTable::clear_fcc() { |
733 uint hrs_idx = hr()->hrs_index(); | 733 uint hrs_idx = hr()->hrs_index(); |
734 for (uint i = 0; i < HeapRegionRemSet::num_par_rem_sets(); i++) { | 734 uint num_par_remsets = HeapRegionRemSet::num_par_rem_sets(); |
735 for (uint i = 0; i < num_par_remsets; i++) { | |
735 _from_card_cache[i][hrs_idx] = -1; | 736 _from_card_cache[i][hrs_idx] = -1; |
736 } | 737 } |
737 } | 738 } |
738 | 739 |
739 void OtherRegionsTable::clear() { | 740 void OtherRegionsTable::clear() { |