< prev index next >
src/hotspot/share/classfile/systemDictionary.cpp
Print this page
rev 52316 : 8185525: Add JFR event for DictionarySizes
Summary: Added TableStatistics event
Reviewed-by: egahlin, coleenp
*** 2934,2950 ****
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");
! _pd_cache_table->print_table_statistics(st, "ProtectionDomainCache Table");
}
}
// Utility for dumping dictionaries.
SystemDictionaryDCmd::SystemDictionaryDCmd(outputStream* output, bool heap) :
DCmdWithParser(output, heap),
_verbose("-verbose", "Dump the content of each dictionary entry for all class loaders",
"BOOLEAN", false, "false") {
--- 2934,2962 ----
print_on(st);
} else {
if (shared_dictionary() != NULL) {
shared_dictionary()->print_table_statistics(st, "Shared Dictionary");
}
! ClassLoaderDataGraph::print_table_statistics(st);
placeholders()->print_table_statistics(st, "Placeholder Table");
constraints()->print_table_statistics(st, "LoaderConstraints Table");
! pd_cache_table()->print_table_statistics(st, "ProtectionDomainCache Table");
}
}
+ TableStatistics SystemDictionary::placeholders_statistics() {
+ return placeholders()->statistics_calculate();
+ }
+
+ TableStatistics SystemDictionary::loader_constraints_statistics() {
+ return constraints()->statistics_calculate();
+ }
+
+ TableStatistics SystemDictionary::protection_domain_cache_statistics() {
+ return pd_cache_table()->statistics_calculate();
+ }
+
// Utility for dumping dictionaries.
SystemDictionaryDCmd::SystemDictionaryDCmd(outputStream* output, bool heap) :
DCmdWithParser(output, heap),
_verbose("-verbose", "Dump the content of each dictionary entry for all class loaders",
"BOOLEAN", false, "false") {
< prev index next >