comparison src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp @ 6865:4202510ee0fe

8000831: Heap verification output incorrect/incomplete Summary: Restore non-silent output of heap verification. Reviewed-by: ysr, brutisso, jmasa
author johnc
date Mon, 15 Oct 2012 10:02:42 -0700
parents 22b8d3d181d9
children 203f64878aab
comparison
equal deleted inserted replaced
6864:dd2b66d09ccd 6865:4202510ee0fe
313 heap->ensure_parsability(true); // retire TLABs 313 heap->ensure_parsability(true); // retire TLABs
314 314
315 if (VerifyBeforeGC && heap->total_collections() >= VerifyGCStartAt) { 315 if (VerifyBeforeGC && heap->total_collections() >= VerifyGCStartAt) {
316 HandleMark hm; // Discard invalid handles created during verification 316 HandleMark hm; // Discard invalid handles created during verification
317 gclog_or_tty->print(" VerifyBeforeGC:"); 317 gclog_or_tty->print(" VerifyBeforeGC:");
318 Universe::verify(true); 318 Universe::verify();
319 } 319 }
320 320
321 { 321 {
322 ResourceMark rm; 322 ResourceMark rm;
323 HandleMark hm; 323 HandleMark hm;
637 } 637 }
638 638
639 if (VerifyAfterGC && heap->total_collections() >= VerifyGCStartAt) { 639 if (VerifyAfterGC && heap->total_collections() >= VerifyGCStartAt) {
640 HandleMark hm; // Discard invalid handles created during verification 640 HandleMark hm; // Discard invalid handles created during verification
641 gclog_or_tty->print(" VerifyAfterGC:"); 641 gclog_or_tty->print(" VerifyAfterGC:");
642 Universe::verify(false); 642 Universe::verify();
643 } 643 }
644 644
645 heap->print_heap_after_gc(); 645 heap->print_heap_after_gc();
646 646
647 if (ZapUnusedHeapArea) { 647 if (ZapUnusedHeapArea) {