src/hotspot/share/classfile/protectionDomainCache.cpp
changeset 58177 4932dce35882
parent 54623 1126f0607c70
equal deleted inserted replaced
58176:470af058bd5f 58177:4932dce35882
   158 }
   158 }
   159 
   159 
   160 ProtectionDomainCacheEntry* ProtectionDomainCacheTable::find_entry(int index, Handle protection_domain) {
   160 ProtectionDomainCacheEntry* ProtectionDomainCacheTable::find_entry(int index, Handle protection_domain) {
   161   assert_locked_or_safepoint(SystemDictionary_lock);
   161   assert_locked_or_safepoint(SystemDictionary_lock);
   162   for (ProtectionDomainCacheEntry* e = bucket(index); e != NULL; e = e->next()) {
   162   for (ProtectionDomainCacheEntry* e = bucket(index); e != NULL; e = e->next()) {
   163     if (oopDesc::equals(e->object_no_keepalive(), protection_domain())) {
   163     if (e->object_no_keepalive() == protection_domain()) {
   164       return e;
   164       return e;
   165     }
   165     }
   166   }
   166   }
   167 
   167 
   168   return NULL;
   168   return NULL;