mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
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:
parent
f7f193ae71
commit
7c8c0a97fc
3 changed files with 99 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue