< prev index next >

src/share/vm/gc/shenandoah/shenandoahMarkCompact.cpp

Print this page

        

*** 315,327 **** if (UseShenandoahMatrix) { if (PrintShenandoahMatrix) { outputStream* log = Log(gc)::info_stream(); _heap->connection_matrix()->print_on(log); } - if (VerifyShenandoahMatrix) { - _heap->verify_matrix(); } } if (VerifyDuringGC) { HandleMark hm; // handle scope // Universe::heap()->prepare_for_verify(); --- 315,328 ---- if (UseShenandoahMatrix) { if (PrintShenandoahMatrix) { outputStream* log = Log(gc)::info_stream(); _heap->connection_matrix()->print_on(log); } } + + if (ShenandoahVerify || (UseShenandoahMatrix && VerifyShenandoahMatrix)) { + _heap->verify_heap_reachable_at_safepoint(); } if (VerifyDuringGC) { HandleMark hm; // handle scope // Universe::heap()->prepare_for_verify();
< prev index next >