--- a/src/hotspot/share/prims/whitebox.cpp Fri Aug 31 09:10:27 2018 -0400
+++ b/src/hotspot/share/prims/whitebox.cpp Fri Aug 31 10:22:04 2018 -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 },
};