diff --git a/src/hotspot/share/gc/shared/space.cpp b/src/hotspot/share/gc/shared/space.cpp index 12b74220d4f..7d141710d47 100644 --- a/src/hotspot/share/gc/shared/space.cpp +++ b/src/hotspot/share/gc/shared/space.cpp @@ -99,20 +99,12 @@ void ContiguousSpace::mangle_unused_area_complete() { } #endif // NOT_PRODUCT - -void ContiguousSpace::print_short() const { print_short_on(tty); } - -void ContiguousSpace::print_short_on(outputStream* st) const { - st->print(" space " SIZE_FORMAT "K, %3d%% used", capacity() / K, - (int) ((double) used() * 100 / capacity())); -} - void ContiguousSpace::print() const { print_on(tty); } void ContiguousSpace::print_on(outputStream* st) const { - print_short_on(st); - st->print_cr(" [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT ")", - p2i(bottom()), p2i(top()), p2i(end())); + st->print_cr(" space %zuK, %3d%% used [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT ")", + capacity() / K, (int) ((double) used() * 100 / capacity()), + p2i(bottom()), p2i(top()), p2i(end())); } void ContiguousSpace::verify() const { diff --git a/src/hotspot/share/gc/shared/space.hpp b/src/hotspot/share/gc/shared/space.hpp index d0925e70d3b..6eb8fe9818c 100644 --- a/src/hotspot/share/gc/shared/space.hpp +++ b/src/hotspot/share/gc/shared/space.hpp @@ -127,9 +127,7 @@ public: size_t free() const { return byte_size(top(), end()); } void print() const; - virtual void print_on(outputStream* st) const; - void print_short() const; - void print_short_on(outputStream* st) const; + void print_on(outputStream* st) const; // Initialization. // "initialize" should be called once on a space, before it is used for