14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/cms/cmsHeap.hpp"
27 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
28 #include "gc/cms/concurrentMarkSweepThread.hpp"
29 #include "gc/cms/vmCMSOperations.hpp"
30 #include "gc/shared/gcLocker.inline.hpp"
31 #include "gc/shared/gcTimer.hpp"
32 #include "gc/shared/gcTraceTime.inline.hpp"
33 #include "gc/shared/isGCActiveMark.hpp"
34 #include "runtime/interfaceSupport.hpp"
35 #include "runtime/os.hpp"
36 #include "utilities/dtrace.hpp"
37
38 //////////////////////////////////////////////////////////
39 // Methods in abstract class VM_CMS_Operation
40 //////////////////////////////////////////////////////////
41 void VM_CMS_Operation::verify_before_gc() {
42 if (VerifyBeforeGC &&
43 CMSHeap::heap()->total_collections() >= VerifyGCStartAt) {
44 GCTraceTime(Info, gc, phases, verify) tm("Verify Before", _collector->_gc_timer_cm);
45 HandleMark hm;
46 FreelistLocker x(_collector);
47 MutexLockerEx y(_collector->bitMapLock(), Mutex::_no_safepoint_check_flag);
48 CMSHeap::heap()->prepare_for_verify();
49 Universe::verify();
50 }
51 }
52
53 void VM_CMS_Operation::verify_after_gc() {
54 if (VerifyAfterGC &&
|
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/cms/cmsHeap.hpp"
27 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
28 #include "gc/cms/concurrentMarkSweepThread.hpp"
29 #include "gc/cms/vmCMSOperations.hpp"
30 #include "gc/shared/gcLocker.inline.hpp"
31 #include "gc/shared/gcTimer.hpp"
32 #include "gc/shared/gcTraceTime.inline.hpp"
33 #include "gc/shared/isGCActiveMark.hpp"
34 #include "runtime/handles.inline.hpp"
35 #include "runtime/interfaceSupport.inline.hpp"
36 #include "runtime/os.hpp"
37 #include "utilities/dtrace.hpp"
38
39 //////////////////////////////////////////////////////////
40 // Methods in abstract class VM_CMS_Operation
41 //////////////////////////////////////////////////////////
42 void VM_CMS_Operation::verify_before_gc() {
43 if (VerifyBeforeGC &&
44 CMSHeap::heap()->total_collections() >= VerifyGCStartAt) {
45 GCTraceTime(Info, gc, phases, verify) tm("Verify Before", _collector->_gc_timer_cm);
46 HandleMark hm;
47 FreelistLocker x(_collector);
48 MutexLockerEx y(_collector->bitMapLock(), Mutex::_no_safepoint_check_flag);
49 CMSHeap::heap()->prepare_for_verify();
50 Universe::verify();
51 }
52 }
53
54 void VM_CMS_Operation::verify_after_gc() {
55 if (VerifyAfterGC &&
|