mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8187979: Clean up info printing at CDS dump time
Reviewed-by: jiangli, ccheung
This commit is contained in:
parent
fd93a04684
commit
a2d1045eef
4 changed files with 7 additions and 8 deletions
|
@ -233,7 +233,6 @@ class MetaspaceObj {
|
|||
void print_address_on(outputStream* st) const; // nonvirtual address printing
|
||||
|
||||
#define METASPACE_OBJ_TYPES_DO(f) \
|
||||
f(Unknown) \
|
||||
f(Class) \
|
||||
f(Symbol) \
|
||||
f(TypeArrayU1) \
|
||||
|
|
|
@ -165,7 +165,7 @@ public:
|
|||
}
|
||||
|
||||
void print(size_t total_bytes) const {
|
||||
tty->print_cr("%s space: " SIZE_FORMAT_W(9) " [ %4.1f%% of total] out of " SIZE_FORMAT_W(9) " bytes [%5.1f%% used] at " INTPTR_FORMAT,
|
||||
tty->print_cr("%-3s space: " SIZE_FORMAT_W(9) " [ %4.1f%% of total] out of " SIZE_FORMAT_W(9) " bytes [%5.1f%% used] at " INTPTR_FORMAT,
|
||||
_name, used(), perc(used(), total_bytes), reserved(), perc(used(), reserved()), p2i(_base));
|
||||
}
|
||||
void print_out_of_space_msg(const char* failing_region, size_t needed_bytes) {
|
||||
|
@ -1416,7 +1416,7 @@ void VM_PopulateDumpSharedSpace::print_heap_region_stats(GrowableArray<MemRegion
|
|||
char* start = (char*)heap_mem->at(i).start();
|
||||
size_t size = heap_mem->at(i).byte_size();
|
||||
char* top = start + size;
|
||||
tty->print_cr("%s%d space: " SIZE_FORMAT_W(9) " [ %4.1f%% of total] out of " SIZE_FORMAT_W(9) " bytes [100%% used] at " INTPTR_FORMAT,
|
||||
tty->print_cr("%s%d space: " SIZE_FORMAT_W(9) " [ %4.1f%% of total] out of " SIZE_FORMAT_W(9) " bytes [100.0%% used] at " INTPTR_FORMAT,
|
||||
name, i, size, size/double(total_size)*100.0, size, p2i(start));
|
||||
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class SpaceUtilizationCheck {
|
|||
static void test(String... extra_options) throws Exception {
|
||||
OutputAnalyzer output = CDSTestUtils.createArchive(extra_options);
|
||||
CDSTestUtils.checkDump(output);
|
||||
Pattern pattern = Pattern.compile("^(..) space: *([0-9]+).* out of *([0-9]+) bytes .* at 0x([0-9a0-f]+)");
|
||||
Pattern pattern = Pattern.compile("^(..) *space: *([0-9]+).* out of *([0-9]+) bytes .* at 0x([0-9a0-f]+)");
|
||||
WhiteBox wb = WhiteBox.getWhiteBox();
|
||||
long reserve_alignment = wb.metaspaceReserveAlignment();
|
||||
System.out.println("Metaspace::reserve_alignment() = " + reserve_alignment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue