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

Print this page

        

@@ -388,10 +388,12 @@
 void G1RegionMappingChangedListener::reset_from_card_cache(uint start_idx, size_t num_regions) {
   OtherRegionsTable::invalidate(start_idx, num_regions);
 }
 
 void G1RegionMappingChangedListener::on_commit(uint start_idx, size_t num_regions, bool zero_filled) {
+  // The from card cache is not the memory that is actually committed. So we cannot
+  // take advantage of the zero_filled parameter.
   reset_from_card_cache(start_idx, num_regions);
 }
 
 void G1CollectedHeap::push_dirty_cards_region(HeapRegion* hr)
 {