hotspot/src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
changeset 17112 e49af4ba7755
parent 17109 90e6c31bbbe4
child 17114 b341b4c63384
equal deleted inserted replaced
17111:77f553b98e63 17112:e49af4ba7755
   136   heap->accumulate_statistics_all_tlabs();
   136   heap->accumulate_statistics_all_tlabs();
   137   heap->ensure_parsability(true);  // retire TLABs
   137   heap->ensure_parsability(true);  // retire TLABs
   138 
   138 
   139   if (VerifyBeforeGC && heap->total_collections() >= VerifyGCStartAt) {
   139   if (VerifyBeforeGC && heap->total_collections() >= VerifyGCStartAt) {
   140     HandleMark hm;  // Discard invalid handles created during verification
   140     HandleMark hm;  // Discard invalid handles created during verification
   141     gclog_or_tty->print(" VerifyBeforeGC:");
   141     Universe::verify(" VerifyBeforeGC:");
   142     Universe::verify();
       
   143   }
   142   }
   144 
   143 
   145   // Verify object start arrays
   144   // Verify object start arrays
   146   if (VerifyObjectStartArray &&
   145   if (VerifyObjectStartArray &&
   147       VerifyBeforeGC) {
   146       VerifyBeforeGC) {
   339     heap->update_counters();
   338     heap->update_counters();
   340   }
   339   }
   341 
   340 
   342   if (VerifyAfterGC && heap->total_collections() >= VerifyGCStartAt) {
   341   if (VerifyAfterGC && heap->total_collections() >= VerifyGCStartAt) {
   343     HandleMark hm;  // Discard invalid handles created during verification
   342     HandleMark hm;  // Discard invalid handles created during verification
   344     gclog_or_tty->print(" VerifyAfterGC:");
   343     Universe::verify(" VerifyAfterGC:");
   345     Universe::verify();
       
   346   }
   344   }
   347 
   345 
   348   // Re-verify object start arrays
   346   // Re-verify object start arrays
   349   if (VerifyObjectStartArray &&
   347   if (VerifyObjectStartArray &&
   350       VerifyAfterGC) {
   348       VerifyAfterGC) {