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

changeset 7257
e7d0505c8a30
parent 7195
c02ec279b062
child 7333
b12a2a9b05ca
     1.1 --- a/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Fri Oct 10 15:45:45 2014 +0200
     1.2 +++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Fri Oct 10 15:51:58 2014 +0200
     1.3 @@ -130,7 +130,10 @@
     1.4    storage->set_mapping_changed_listener(&_listener);
     1.5  }
     1.6  
     1.7 -void CMBitMapMappingChangedListener::on_commit(uint start_region, size_t num_regions) {
     1.8 +void CMBitMapMappingChangedListener::on_commit(uint start_region, size_t num_regions, bool zero_filled) {
     1.9 +  if (zero_filled) {
    1.10 +    return;
    1.11 +  }
    1.12    // We need to clear the bitmap on commit, removing any existing information.
    1.13    MemRegion mr(G1CollectedHeap::heap()->bottom_addr_for_region(start_region), num_regions * HeapRegion::GrainWords);
    1.14    _bm->clearRange(mr);

mercurial