--- old/src/hotspot/share/classfile/protectionDomainCache.hpp 2018-08-21 14:24:17.382323836 -0400 +++ new/src/hotspot/share/classfile/protectionDomainCache.hpp 2018-08-21 14:24:16.928281722 -0400 @@ -85,6 +85,8 @@ ProtectionDomainCacheEntry* add_entry(int index, unsigned int hash, Handle protection_domain); ProtectionDomainCacheEntry* find_entry(int index, Handle protection_domain); + bool _dead_entries; + public: ProtectionDomainCacheTable(int table_size); ProtectionDomainCacheEntry* get(Handle protection_domain); @@ -93,6 +95,9 @@ void print_on(outputStream* st) const; void verify(); + + bool has_work() { return _dead_entries; } + void trigger_cleanup(); };