--- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Tue Apr 09 12:17:03 2019 -0700
+++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Tue Apr 09 21:20:15 2019 +0200
@@ -502,7 +502,7 @@
void ShenandoahHeap::print_on(outputStream* st) const {
st->print_cr("Shenandoah Heap");
st->print_cr(" " SIZE_FORMAT "K total, " SIZE_FORMAT "K committed, " SIZE_FORMAT "K used",
- capacity() / K, committed() / K, used() / K);
+ max_capacity() / K, committed() / K, used() / K);
st->print_cr(" " SIZE_FORMAT " x " SIZE_FORMAT"K regions",
num_regions(), ShenandoahHeapRegion::region_size_bytes() / K);
@@ -615,7 +615,7 @@
}
size_t ShenandoahHeap::capacity() const {
- return num_regions() * ShenandoahHeapRegion::region_size_bytes();
+ return committed();
}
size_t ShenandoahHeap::max_capacity() const {
@@ -649,8 +649,6 @@
}
if (count > 0) {
- log_info(gc)("Uncommitted " SIZE_FORMAT "M. Heap: " SIZE_FORMAT "M reserved, " SIZE_FORMAT "M committed, " SIZE_FORMAT "M used",
- count * ShenandoahHeapRegion::region_size_bytes() / M, capacity() / M, committed() / M, used() / M);
control_thread()->notify_heap_changed();
}
}