< prev index next >

src/share/vm/classfile/dictionary.cpp

Print this page

        

*** 78,94 **** } 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) { --- 78,95 ---- } bool DictionaryEntry::contains_protection_domain(oop protection_domain) const { #ifdef ASSERT ! protection_domain = oopDesc::bs()->write_barrier(protection_domain); ! if (protection_domain == oopDesc::bs()->write_barrier(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 (oopDesc::bs()->write_barrier(current->protection_domain()) == protection_domain) { in_pd_set = true; break; } } if (in_pd_set) {
*** 96,114 **** "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; } --- 97,115 ---- "in its sys. dict. PD set"); } } #endif /* ASSERT */ ! if (protection_domain == oopDesc::bs()->write_barrier(InstanceKlass::cast(klass())->protection_domain())) { // Succeeds trivially return true; } for (ProtectionDomainEntry* current = _pd_set; current != NULL; current = current->next()) { ! if (oopDesc::bs()->write_barrier(current->protection_domain()) == protection_domain) return true; } return false; }
*** 775,780 **** "Verify of system dictionary failed"); debug_only(verify_lookup_length((double)number_of_entries() / table_size())); _pd_cache_table->verify(); } - --- 776,780 ----
< prev index next >