< prev index next >
src/hotspot/share/utilities/ostream.cpp
Print this page
rev 49873 : imported patch 8201572-improve-metaspace-reporting
rev 49874 : [mq]: 8201572-improve-metaspace-reporting-2
*** 340,351 ****
}
#endif
if (scale == 1) {
print("%*" PRIuPTR " bytes", width, byte_size);
! } else if (scale == sizeof(MetaWord)) {
! print("%*" PRIuPTR " words", width, byte_size / sizeof(MetaWord));
} else {
const char* display_unit = "";
switch(scale) {
case 1: display_unit = "bytes"; break;
case BytesPerWord: display_unit = "words"; break;
--- 340,351 ----
}
#endif
if (scale == 1) {
print("%*" PRIuPTR " bytes", width, byte_size);
! } else if (scale == BytesPerWord) {
! print("%*" PRIuPTR " words", width, byte_size / BytesPerWord);
} else {
const char* display_unit = "";
switch(scale) {
case 1: display_unit = "bytes"; break;
case BytesPerWord: display_unit = "words"; break;
< prev index next >