< prev index next >

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

Print this page
rev 13055 : Implement barriers for maintaining connection matrix.

@@ -303,10 +303,19 @@
   cm->mark_roots();
   cm->shared_finish_mark_from_roots(/* full_gc = */ true);
 
   _heap->swap_mark_bitmaps();
 
+  if (UseShenandoahMatrix) {
+    if (PrintShenandoahMatrix) {
+      _heap->connection_matrix()->print_on(tty);
+    }
+    if (VerifyShenandoahMatrix) {
+      _heap->verify_matrix();
+    }
+  }
+
   if (VerifyDuringGC) {
     HandleMark hm;  // handle scope
     //    Universe::heap()->prepare_for_verify();
     _heap->prepare_for_verify();
     // Note: we can verify only the heap here. When an object is
< prev index next >