8130072: Add a flag to print out statistics for both system dictionary and shared dictionary

Include Shared Dictionary printing when printing system dictionaries

Reviewed-by: shade, gtriantafill
This commit is contained in:
Coleen Phillimore 2017-08-03 08:16:00 -04:00
parent f7f193ae71
commit 7c8c0a97fc
3 changed files with 99 additions and 2 deletions

View file

@ -2833,8 +2833,9 @@ void SystemDictionary::print_shared(outputStream *st) {
void SystemDictionary::print_on(outputStream *st) {
if (shared_dictionary() != NULL) {
tty->print_cr("Shared Dictionary");
st->print_cr("Shared Dictionary");
shared_dictionary()->print_on(st);
st->cr();
}
GCMutexLocker mu(SystemDictionary_lock);
@ -2878,6 +2879,9 @@ void SystemDictionary::dump(outputStream *st, bool verbose) {
if (verbose) {
print_on(st);
} else {
if (shared_dictionary() != NULL) {
shared_dictionary()->print_table_statistics(st, "Shared Dictionary");
}
ClassLoaderDataGraph::print_dictionary_statistics(st);
placeholders()->print_table_statistics(st, "Placeholder Table");
constraints()->print_table_statistics(st, "LoaderConstraints Table");