hotspot/src/share/vm/classfile/protectionDomainCache.cpp
changeset 46475 75902cea18af
parent 46382 5520c435279b
child 46701 f559541c0daa
--- a/hotspot/src/share/vm/classfile/protectionDomainCache.cpp	Wed May 17 23:36:19 2017 +0200
+++ b/hotspot/src/share/vm/classfile/protectionDomainCache.cpp	Thu May 18 08:17:52 2017 -0400
@@ -97,18 +97,7 @@
 #endif
 
 void ProtectionDomainCacheTable::verify() {
-  int element_count = 0;
-  for (int index = 0; index < table_size(); index++) {
-    for (ProtectionDomainCacheEntry* probe = bucket(index);
-                                     probe != NULL;
-                                     probe = probe->next()) {
-      probe->verify();
-      element_count++;
-    }
-  }
-  guarantee(number_of_entries() == element_count,
-            "Verify of protection domain cache table failed");
-  DEBUG_ONLY(verify_lookup_length((double)number_of_entries() / table_size(), "Domain Cache Table"));
+  verify_table<ProtectionDomainCacheEntry>("Protection Domain Table");
 }
 
 void ProtectionDomainCacheEntry::verify() {