hotspot/agent/src/share/classes/sun/jvm/hotspot/memory/DictionaryEntry.java
changeset 17826 9ad5cd464a75
parent 13728 882756847a04
child 22234 da823d78ad65
equal deleted inserted replaced
17825:b6fc2755ec91 17826:9ad5cd464a75
    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       }