Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/concurrentMarkSweep/vmCMSOperations.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 | 9d679effd28c |
children | 633ba56cb013 |
comparison
equal
deleted
inserted
replaced
6864:dd2b66d09ccd | 6865:4202510ee0fe |
---|---|
62 GenCollectedHeap::heap()->total_collections() >= VerifyGCStartAt) { | 62 GenCollectedHeap::heap()->total_collections() >= VerifyGCStartAt) { |
63 HandleMark hm; | 63 HandleMark hm; |
64 FreelistLocker x(_collector); | 64 FreelistLocker x(_collector); |
65 MutexLockerEx y(_collector->bitMapLock(), Mutex::_no_safepoint_check_flag); | 65 MutexLockerEx y(_collector->bitMapLock(), Mutex::_no_safepoint_check_flag); |
66 Universe::heap()->prepare_for_verify(); | 66 Universe::heap()->prepare_for_verify(); |
67 Universe::verify(true); | 67 Universe::verify(); |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 void VM_CMS_Operation::verify_after_gc() { | 71 void VM_CMS_Operation::verify_after_gc() { |
72 if (VerifyAfterGC && | 72 if (VerifyAfterGC && |
73 GenCollectedHeap::heap()->total_collections() >= VerifyGCStartAt) { | 73 GenCollectedHeap::heap()->total_collections() >= VerifyGCStartAt) { |
74 HandleMark hm; | 74 HandleMark hm; |
75 FreelistLocker x(_collector); | 75 FreelistLocker x(_collector); |
76 MutexLockerEx y(_collector->bitMapLock(), Mutex::_no_safepoint_check_flag); | 76 MutexLockerEx y(_collector->bitMapLock(), Mutex::_no_safepoint_check_flag); |
77 Universe::verify(true); | 77 Universe::verify(); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 bool VM_CMS_Operation::lost_race() const { | 81 bool VM_CMS_Operation::lost_race() const { |
82 if (CMSCollector::abstract_state() == CMSCollector::Idling) { | 82 if (CMSCollector::abstract_state() == CMSCollector::Idling) { |