comparison src/share/vm/classfile/protectionDomainCache.cpp @ 13438:a77c680f1535

8184994: Add Dictionary size logging and jcmd Summary: added dcmd for printing system dictionary like the stringtable and symboltable and making print functions go to outputstream rather than tty Reviewed-by: shade, hseigel
author coleenp
date Wed, 02 Aug 2017 10:52:50 -0400
parents 46bb2774fc88
children 12817e44b856
comparison
equal deleted inserted replaced
3:ddd6dd718aaf 4:3b73b1d764be
78 probe->oops_do(f); 78 probe->oops_do(f);
79 } 79 }
80 } 80 }
81 } 81 }
82 82
83 #ifndef PRODUCT 83 void ProtectionDomainCacheTable::print_on(outputStream* st) const {
84 void ProtectionDomainCacheTable::print() { 84 st->print_cr("Protection domain cache table (table_size=%d, classes=%d)",
85 tty->print_cr("Protection domain cache table (table_size=%d, classes=%d)", 85 table_size(), number_of_entries());
86 table_size(), number_of_entries());
87 for (int index = 0; index < table_size(); index++) { 86 for (int index = 0; index < table_size(); index++) {
88 for (ProtectionDomainCacheEntry* probe = bucket(index); 87 for (ProtectionDomainCacheEntry* probe = bucket(index);
89 probe != NULL; 88 probe != NULL;
90 probe = probe->next()) { 89 probe = probe->next()) {
91 tty->print("%4d: ", index); 90 st->print_cr("%4d: protection_domain: " PTR_FORMAT, index, p2i(probe->literal()));
92 probe->print();
93 } 91 }
94 } 92 }
95 } 93 }
96
97 void ProtectionDomainCacheEntry::print() {
98 tty->print_cr("protection_domain: " PTR_FORMAT, p2i(literal()));
99 }
100 #endif
101 94
102 void ProtectionDomainCacheTable::verify() { 95 void ProtectionDomainCacheTable::verify() {
103 verify_table<ProtectionDomainCacheEntry>("Protection Domain Table"); 96 verify_table<ProtectionDomainCacheEntry>("Protection Domain Table");
104 } 97 }
105 98