< prev index next >

src/share/vm/gc/g1/g1ConcurrentMark.cpp

Print this page
rev 12685 : 8176565: G1 Does not perform heap verification after remark with VerifyAfterGC
Reviewed-by:

@@ -1152,11 +1152,11 @@
     // This is the end of  the marking cycle, we're expected all
     // threads to have SATB queues with active set to true.
     satb_mq_set.set_active_all_threads(false, /* new active value */
                                        true /* expected_active */);
 
-    if (VerifyDuringGC) {
+    if (VerifyDuringGC || VerifyAfterGC) {
       HandleMark hm;  // handle scope
       g1h->prepare_for_verify();
       Universe::verify(VerifyOption_G1UseNextMarking, "During GC (after)");
     }
     g1h->verifier()->check_bitmaps("Remark End");
< prev index next >