comparison src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp @ 10186:b06ac540229e

8013132: Add a flag to turn off the output of the verbose verification code Reviewed-by: johnc, brutisso
author stefank
date Wed, 24 Apr 2013 20:13:37 +0200
parents 868d87ed63c8
children 2f50bc369470
comparison
equal deleted inserted replaced
10185:d50cc62e94ff 10186:b06ac540229e
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) {