< prev index next >
src/hotspot/share/classfile/dictionary.cpp
Print this page
rev 48467 : [mq]: INIT_Access_protection_domain
*** 165,175 ****
// Ensure this doesn't show up in the pd_set (invariant)
bool in_pd_set = false;
for (ProtectionDomainEntry* current = pd_set_acquire();
current != NULL;
current = current->next()) {
! if (current->protection_domain() == protection_domain) {
in_pd_set = true;
break;
}
}
if (in_pd_set) {
--- 165,175 ----
// Ensure this doesn't show up in the pd_set (invariant)
bool in_pd_set = false;
for (ProtectionDomainEntry* current = pd_set_acquire();
current != NULL;
current = current->next()) {
! if (current->object_no_keepalive() == protection_domain) {
in_pd_set = true;
break;
}
}
if (in_pd_set) {
*** 185,195 ****
}
for (ProtectionDomainEntry* current = pd_set_acquire();
current != NULL;
current = current->next()) {
! if (current->protection_domain() == protection_domain) return true;
}
return false;
}
--- 185,195 ----
}
for (ProtectionDomainEntry* current = pd_set_acquire();
current != NULL;
current = current->next()) {
! if (current->object_no_keepalive() == protection_domain) return true;
}
return false;
}
< prev index next >