Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8262163: Extend settings printout in jcmd VM.metaspace
Reviewed-by: lucy
  • Loading branch information
tstuefe committed Feb 25, 2021
1 parent a83e802 commit ea48a0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/hotspot/share/memory/metaspace/metaspaceReporter.cpp
Expand Up @@ -108,8 +108,18 @@ static void print_settings(outputStream* out, size_t scale) {
if (Metaspace::using_class_space()) {
out->print("CompressedClassSpaceSize: ");
print_human_readable_size(out, CompressedClassSpaceSize, scale);
} else {
out->print("No class space");
}
out->cr();
out->print("Initial GC threshold: ");
print_human_readable_size(out, MetaspaceSize, scale);
out->cr();
out->print("Current GC threshold: ");
print_human_readable_size(out, MetaspaceGC::capacity_until_GC(), scale);
out->cr();
out->print_cr("CDS: %s", (UseSharedSpaces ? "on" : (DumpSharedSpaces ? "dump" : "off")));
out->print_cr("MetaspaceReclaimPolicy: %s", MetaspaceReclaimPolicy);
Settings::print_on(out);
}

Expand Down

1 comment on commit ea48a0b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.