equal
deleted
inserted
replaced
95 p2i(this), p2i(literal()), p2i(next())); |
95 p2i(this), p2i(literal()), p2i(next())); |
96 } |
96 } |
97 #endif |
97 #endif |
98 |
98 |
99 void ProtectionDomainCacheTable::verify() { |
99 void ProtectionDomainCacheTable::verify() { |
100 int element_count = 0; |
100 verify_table<ProtectionDomainCacheEntry>("Protection Domain Table"); |
101 for (int index = 0; index < table_size(); index++) { |
|
102 for (ProtectionDomainCacheEntry* probe = bucket(index); |
|
103 probe != NULL; |
|
104 probe = probe->next()) { |
|
105 probe->verify(); |
|
106 element_count++; |
|
107 } |
|
108 } |
|
109 guarantee(number_of_entries() == element_count, |
|
110 "Verify of protection domain cache table failed"); |
|
111 DEBUG_ONLY(verify_lookup_length((double)number_of_entries() / table_size(), "Domain Cache Table")); |
|
112 } |
101 } |
113 |
102 |
114 void ProtectionDomainCacheEntry::verify() { |
103 void ProtectionDomainCacheEntry::verify() { |
115 guarantee(literal()->is_oop(), "must be an oop"); |
104 guarantee(literal()->is_oop(), "must be an oop"); |
116 } |
105 } |