changeset 13119:d47fad978b3d

Fix Print Matrix
author chf
date Fri, 24 Mar 2017 10:28:10 -0400
parents d47f09cff69d
children 373d92b4ca8c
files src/share/vm/gc/shenandoah/shenandoahConnectionMatrix.cpp src/share/vm/gc/shenandoah/shenandoahPartialGC.cpp
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc/shenandoah/shenandoahConnectionMatrix.cpp	Fri Mar 24 10:19:01 2017 +0100
+++ b/src/share/vm/gc/shenandoah/shenandoahConnectionMatrix.cpp	Fri Mar 24 10:28:10 2017 -0400
@@ -74,6 +74,7 @@
 }
 
 void ShenandoahConnectionMatrix::print_on(outputStream* st) const {
+  tty->print("got to here 2\n");
   st->print_cr("Connection Matrix:");
   st->print_cr("%8s, %10s, %10s, %10s, %8s, %s", "Region", "Live", "Used", "Garbage", "Refcnt", "Referenced by");
 
--- a/src/share/vm/gc/shenandoah/shenandoahPartialGC.cpp	Fri Mar 24 10:19:01 2017 +0100
+++ b/src/share/vm/gc/shenandoah/shenandoahPartialGC.cpp	Fri Mar 24 10:28:10 2017 -0400
@@ -208,6 +208,12 @@
       _heap->set_region_in_collection_set(to_idx, true);
     }
   }
+
+  if (UseShenandoahMatrix && PrintShenandoahMatrix) {
+    outputStream* log = Log(gc)::info_stream();
+    matrix->print_on(log);
+  }
+
   // Second pass: find all root regions.
   size_t num_cset = collection_set->count();
   for (uint idx = 0; idx < num_cset; idx++) {