src/hotspot/share/classfile/protectionDomainCache.cpp
changeset 58177 4932dce35882
parent 54623 1126f0607c70
--- a/src/hotspot/share/classfile/protectionDomainCache.cpp	Tue Sep 17 09:51:02 2019 +0200
+++ b/src/hotspot/share/classfile/protectionDomainCache.cpp	Tue Sep 17 09:51:02 2019 +0200
@@ -160,7 +160,7 @@
 ProtectionDomainCacheEntry* ProtectionDomainCacheTable::find_entry(int index, Handle protection_domain) {
   assert_locked_or_safepoint(SystemDictionary_lock);
   for (ProtectionDomainCacheEntry* e = bucket(index); e != NULL; e = e->next()) {
-    if (oopDesc::equals(e->object_no_keepalive(), protection_domain())) {
+    if (e->object_no_keepalive() == protection_domain()) {
       return e;
     }
   }