src/share/vm/gc_implementation/g1/g1CardCounts.cpp

changeset 7257
e7d0505c8a30
parent 7051
1f1d373cd044
child 7535
7ae4e26cb1e0
child 9327
f96fcd9e1e1b
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CardCounts.cpp	Fri Oct 10 15:45:45 2014 +0200
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CardCounts.cpp	Fri Oct 10 15:51:58 2014 +0200
     1.3 @@ -33,7 +33,10 @@
     1.4  
     1.5  PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
     1.6  
     1.7 -void G1CardCountsMappingChangedListener::on_commit(uint start_idx, size_t num_regions) {
     1.8 +void G1CardCountsMappingChangedListener::on_commit(uint start_idx, size_t num_regions, bool zero_filled) {
     1.9 +  if (zero_filled) {
    1.10 +    return;
    1.11 +  }
    1.12    MemRegion mr(G1CollectedHeap::heap()->bottom_addr_for_region(start_idx), num_regions * HeapRegion::GrainWords);
    1.13    _counts->clear_range(mr);
    1.14  }

mercurial