--- old/src/hotspot/share/prims/whitebox.cpp 2018-08-29 13:49:57.600998694 -0400 +++ new/src/hotspot/share/prims/whitebox.cpp 2018-08-29 13:49:57.120954114 -0400 @@ -28,6 +28,7 @@ #include "classfile/classLoaderData.hpp" #include "classfile/modules.hpp" +#include "classfile/protectionDomainCache.hpp" #include "classfile/stringTable.hpp" #include "code/codeCache.hpp" #include "compiler/methodMatcher.hpp" @@ -1977,6 +1978,10 @@ return (jint) ResolvedMethodTable::removed_entries_count(); WB_END +WB_ENTRY(jint, WB_ProtectionDomainRemovedCount(JNIEnv* env, jobject o)) + return (jint) SystemDictionary::pd_cache_table()->removed_entries_count(); +WB_END + #define CC (char*) @@ -2199,6 +2204,7 @@ {CC"printOsInfo", CC"()V", (void*)&WB_PrintOsInfo }, {CC"disableElfSectionCache", CC"()V", (void*)&WB_DisableElfSectionCache }, {CC"resolvedMethodRemovedCount", CC"()I", (void*)&WB_ResolvedMethodRemovedCount }, + {CC"protectionDomainRemovedCount", CC"()I", (void*)&WB_ProtectionDomainRemovedCount }, };