changeset 47941:c15f15bcc23e

8177959: G1CollectedHeap::print_on prints incorrect capacity Reviewed-by: sjohanss, ehelin, pliden Contributed-by: leo.korinth@oracle.com
author sjohanss
date Fri, 27 Oct 2017 11:44:56 +0200
parents 002df709f2f2
children 1b0566927c7a
files src/hotspot/share/gc/g1/g1CollectedHeap.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Fri Oct 27 08:55:32 2017 +0000
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Fri Oct 27 11:44:56 2017 +0200
@@ -2390,9 +2390,8 @@
   st->print(" %-20s", "garbage-first heap");
   st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K",
             capacity()/K, used_unlocked()/K);
-  st->print(" [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT ")",
+  st->print(" [" PTR_FORMAT ", " PTR_FORMAT ")",
             p2i(_hrm.reserved().start()),
-            p2i(_hrm.reserved().start() + _hrm.length() + HeapRegion::GrainWords),
             p2i(_hrm.reserved().end()));
   st->cr();
   st->print("  region size " SIZE_FORMAT "K, ", HeapRegion::GrainBytes / K);