hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
changeset 20408 ca559663042f
parent 20318 a02849111b27
parent 20403 45a89fbcd8f7
child 21561 c619b1cb4554
equal deleted inserted replaced
20397:2d8d8790819a 20408:ca559663042f
  6033   // not dirty that area (one less thing to have to do while holding
  6033   // not dirty that area (one less thing to have to do while holding
  6034   // a lock). So we can only verify that [bottom(),pre_dummy_top()]
  6034   // a lock). So we can only verify that [bottom(),pre_dummy_top()]
  6035   // is dirty.
  6035   // is dirty.
  6036   G1SATBCardTableModRefBS* ct_bs = g1_barrier_set();
  6036   G1SATBCardTableModRefBS* ct_bs = g1_barrier_set();
  6037   MemRegion mr(hr->bottom(), hr->pre_dummy_top());
  6037   MemRegion mr(hr->bottom(), hr->pre_dummy_top());
  6038   ct_bs->verify_dirty_region(mr);
  6038   if (hr->is_young()) {
       
  6039     ct_bs->verify_g1_young_region(mr);
       
  6040   } else {
       
  6041     ct_bs->verify_dirty_region(mr);
       
  6042   }
  6039 }
  6043 }
  6040 
  6044 
  6041 void G1CollectedHeap::verify_dirty_young_list(HeapRegion* head) {
  6045 void G1CollectedHeap::verify_dirty_young_list(HeapRegion* head) {
  6042   G1SATBCardTableModRefBS* ct_bs = g1_barrier_set();
  6046   G1SATBCardTableModRefBS* ct_bs = g1_barrier_set();
  6043   for (HeapRegion* hr = head; hr != NULL; hr = hr->get_next_young_region()) {
  6047   for (HeapRegion* hr = head; hr != NULL; hr = hr->get_next_young_region()) {