hotspot/src/share/vm/gc/g1/g1HeapVerifier.cpp
changeset 38183 cb68e4923223
parent 37985 539c597ee0fa
child 38186 ccaa890f8617
equal deleted inserted replaced
38173:73d05e56ec86 38183:cb68e4923223
   581   }
   581   }
   582 }
   582 }
   583 
   583 
   584 void G1HeapVerifier::verify_dirty_young_list(HeapRegion* head) {
   584 void G1HeapVerifier::verify_dirty_young_list(HeapRegion* head) {
   585   G1SATBCardTableModRefBS* ct_bs = _g1h->g1_barrier_set();
   585   G1SATBCardTableModRefBS* ct_bs = _g1h->g1_barrier_set();
   586   for (HeapRegion* hr = head; hr != NULL; hr = hr->get_next_young_region()) {
   586   for (HeapRegion* hr = head; hr != NULL; hr = hr->next_in_collection_set()) {
   587     verify_dirty_region(hr);
   587     verify_dirty_region(hr);
   588   }
   588   }
   589 }
   589 }
   590 
   590 
   591 void G1HeapVerifier::verify_dirty_young_regions() {
   591 void G1HeapVerifier::verify_dirty_young_regions() {
   592   verify_dirty_young_list(_g1h->young_list()->first_region());
   592   verify_dirty_young_list(_g1h->collection_set()->inc_head());
   593 }
   593 }
   594 
   594 
   595 bool G1HeapVerifier::verify_no_bits_over_tams(const char* bitmap_name, G1CMBitMapRO* bitmap,
   595 bool G1HeapVerifier::verify_no_bits_over_tams(const char* bitmap_name, G1CMBitMapRO* bitmap,
   596                                                HeapWord* tams, HeapWord* end) {
   596                                                HeapWord* tams, HeapWord* end) {
   597   guarantee(tams <= end,
   597   guarantee(tams <= end,