< prev index next >

src/share/vm/gc/g1/g1HeapVerifier.cpp

Print this page




 391   } else {
 392     VerifyRegionClosure blk(false, vo);
 393     _g1h->heap_region_iterate(&blk);
 394     if (blk.failures()) {
 395       failures = true;
 396     }
 397   }
 398 
 399   if (G1StringDedup::is_enabled()) {
 400     log_debug(gc, verify)("StrDedup");
 401     G1StringDedup::verify();
 402   }
 403 
 404   if (failures) {
 405     log_info(gc, verify)("Heap after failed verification:");
 406     // It helps to have the per-region information in the output to
 407     // help us track down what went wrong. This is why we call
 408     // print_extended_on() instead of print_on().
 409     LogHandle(gc, verify) log;
 410     ResourceMark rm;
 411     _g1h->print_extended_on(log.info_stream());
 412   }
 413   guarantee(!failures, "there should not have been any failures");
 414 }
 415 
 416 // Heap region set verification
 417 
 418 class VerifyRegionListsClosure : public HeapRegionClosure {
 419 private:
 420   HeapRegionSet*   _old_set;
 421   HeapRegionSet*   _humongous_set;
 422   HeapRegionManager*   _hrm;
 423 
 424 public:
 425   uint _old_count;
 426   uint _humongous_count;
 427   uint _free_count;
 428 
 429   VerifyRegionListsClosure(HeapRegionSet* old_set,
 430                            HeapRegionSet* humongous_set,
 431                            HeapRegionManager* hrm) :




 391   } else {
 392     VerifyRegionClosure blk(false, vo);
 393     _g1h->heap_region_iterate(&blk);
 394     if (blk.failures()) {
 395       failures = true;
 396     }
 397   }
 398 
 399   if (G1StringDedup::is_enabled()) {
 400     log_debug(gc, verify)("StrDedup");
 401     G1StringDedup::verify();
 402   }
 403 
 404   if (failures) {
 405     log_info(gc, verify)("Heap after failed verification:");
 406     // It helps to have the per-region information in the output to
 407     // help us track down what went wrong. This is why we call
 408     // print_extended_on() instead of print_on().
 409     LogHandle(gc, verify) log;
 410     ResourceMark rm;
 411     _g1h->print_extended_on(log.error_stream());
 412   }
 413   guarantee(!failures, "there should not have been any failures");
 414 }
 415 
 416 // Heap region set verification
 417 
 418 class VerifyRegionListsClosure : public HeapRegionClosure {
 419 private:
 420   HeapRegionSet*   _old_set;
 421   HeapRegionSet*   _humongous_set;
 422   HeapRegionManager*   _hrm;
 423 
 424 public:
 425   uint _old_count;
 426   uint _humongous_count;
 427   uint _free_count;
 428 
 429   VerifyRegionListsClosure(HeapRegionSet* old_set,
 430                            HeapRegionSet* humongous_set,
 431                            HeapRegionManager* hrm) :


< prev index next >