Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/memory/DictionaryEntry.java @ 10343:6bd680e9ea35
8003421: NPG: Move oops out of InstanceKlass into mirror
Summary: Inject protection_domain, signers, init_lock into java_lang_Class
Reviewed-by: stefank, dholmes, sla
author | coleenp |
---|---|
date | Wed, 22 May 2013 14:37:49 -0400 |
parents | da91efe96a93 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
10342:1a07e086ff28 | 10343:6bd680e9ea35 |
---|---|
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 public boolean containsProtectionDomain(Oop protectionDomain) { | 97 public boolean containsProtectionDomain(Oop protectionDomain) { |
98 InstanceKlass ik = (InstanceKlass) klass(); | 98 InstanceKlass ik = (InstanceKlass) klass(); |
99 if (protectionDomain.equals(ik.getProtectionDomain())) { | 99 // Currently unimplemented and not used. |
100 return true; // Succeeds trivially | 100 // if (protectionDomain.equals(ik.getJavaMirror().getProtectionDomain())) { |
101 } | 101 // return true; // Succeeds trivially |
102 // } | |
102 for (ProtectionDomainEntry current = pdSet(); current != null; | 103 for (ProtectionDomainEntry current = pdSet(); current != null; |
103 current = current.next()) { | 104 current = current.next()) { |
104 if (protectionDomain.equals(current.protectionDomain())) { | 105 if (protectionDomain.equals(current.protectionDomain())) { |
105 return true; | 106 return true; |
106 } | 107 } |