< prev index next >

src/share/vm/classfile/dictionary.cpp

Print this page

        

*** 89,105 **** } bool DictionaryEntry::contains_protection_domain(oop protection_domain) const { #ifdef ASSERT ! if (protection_domain == InstanceKlass::cast(klass())->protection_domain()) { // Ensure this doesn't show up in the pd_set (invariant) bool in_pd_set = false; for (ProtectionDomainEntry* current = _pd_set; current != NULL; current = current->next()) { ! if (current->protection_domain() == protection_domain) { in_pd_set = true; break; } } if (in_pd_set) { --- 89,105 ---- } bool DictionaryEntry::contains_protection_domain(oop protection_domain) const { #ifdef ASSERT ! if (oopDesc::equals(protection_domain, klass()->protection_domain())) { // Ensure this doesn't show up in the pd_set (invariant) bool in_pd_set = false; for (ProtectionDomainEntry* current = _pd_set; current != NULL; current = current->next()) { ! if (oopDesc::equals(current->protection_domain(), protection_domain)) { in_pd_set = true; break; } } if (in_pd_set) {
*** 107,125 **** "in its sys. dict. PD set"); } } #endif /* ASSERT */ ! if (protection_domain == InstanceKlass::cast(klass())->protection_domain()) { // Succeeds trivially return true; } for (ProtectionDomainEntry* current = _pd_set; current != NULL; current = current->next()) { ! if (current->protection_domain() == protection_domain) return true; } return false; } --- 107,125 ---- "in its sys. dict. PD set"); } } #endif /* ASSERT */ ! if (oopDesc::equals(protection_domain, klass()->protection_domain())) { // Succeeds trivially return true; } for (ProtectionDomainEntry* current = _pd_set; current != NULL; current = current->next()) { ! if (oopDesc::equals(current->protection_domain(), protection_domain)) return true; } return false; }
*** 594,604 **** return entry; } ProtectionDomainCacheEntry* ProtectionDomainCacheTable::find_entry(int index, oop protection_domain) { for (ProtectionDomainCacheEntry* e = bucket(index); e != NULL; e = e->next()) { ! if (e->protection_domain() == protection_domain) { return e; } } return NULL; --- 594,604 ---- return entry; } ProtectionDomainCacheEntry* ProtectionDomainCacheTable::find_entry(int index, oop protection_domain) { for (ProtectionDomainCacheEntry* e = bucket(index); e != NULL; e = e->next()) { ! if (oopDesc::equals(e->protection_domain(), protection_domain)) { return e; } } return NULL;
*** 762,767 **** "Verify of system dictionary failed"); debug_only(verify_lookup_length((double)number_of_entries() / table_size())); _pd_cache_table->verify(); } - --- 762,766 ----
< prev index next >