comparison src/share/vm/classfile/protectionDomainCache.cpp @ 13404:46bb2774fc88

7133093: Improve system dictionary performance Summary: implement one dictionary per ClassLoaderData for faster lookup and removal during class unloading Reviewed-by: iklam, acorn, jiangli
author coleenp
date Fri, 28 Jul 2017 10:48:35 -0400
parents ff28370e679e
children a77c680f1535
comparison
equal deleted inserted replaced
2:4d062365b048 3:ddd6dd718aaf
86 table_size(), number_of_entries()); 86 table_size(), number_of_entries());
87 for (int index = 0; index < table_size(); index++) { 87 for (int index = 0; index < table_size(); index++) {
88 for (ProtectionDomainCacheEntry* probe = bucket(index); 88 for (ProtectionDomainCacheEntry* probe = bucket(index);
89 probe != NULL; 89 probe != NULL;
90 probe = probe->next()) { 90 probe = probe->next()) {
91 tty->print("%4d: ", index);
91 probe->print(); 92 probe->print();
92 } 93 }
93 } 94 }
94 } 95 }
95 96
96 void ProtectionDomainCacheEntry::print() { 97 void ProtectionDomainCacheEntry::print() {
97 tty->print_cr("entry " PTR_FORMAT " value " PTR_FORMAT " next " PTR_FORMAT, 98 tty->print_cr("protection_domain: " PTR_FORMAT, p2i(literal()));
98 p2i(this), p2i(literal()), p2i(next()));
99 } 99 }
100 #endif 100 #endif
101 101
102 void ProtectionDomainCacheTable::verify() { 102 void ProtectionDomainCacheTable::verify() {
103 verify_table<ProtectionDomainCacheEntry>("Protection Domain Table"); 103 verify_table<ProtectionDomainCacheEntry>("Protection Domain Table");