--- a/src/hotspot/share/prims/whitebox.cpp Wed Aug 22 10:29:17 2018 +0200
+++ b/src/hotspot/share/prims/whitebox.cpp Wed Aug 29 10:46:59 2018 -0400
@@ -48,6 +48,7 @@
#include "oops/objArrayOop.inline.hpp"
#include "oops/oop.inline.hpp"
#include "oops/typeArrayOop.inline.hpp"
+#include "prims/resolvedMethodTable.hpp"
#include "prims/wbtestmethods/parserTests.hpp"
#include "prims/whitebox.inline.hpp"
#include "runtime/arguments.hpp"
@@ -1972,6 +1973,10 @@
#endif
WB_END
+WB_ENTRY(jint, WB_ResolvedMethodRemovedCount(JNIEnv* env, jobject o))
+ return (jint) ResolvedMethodTable::removed_entries_count();
+WB_END
+
#define CC (char*)
@@ -2193,6 +2198,7 @@
{CC"isContainerized", CC"()Z", (void*)&WB_IsContainerized },
{CC"printOsInfo", CC"()V", (void*)&WB_PrintOsInfo },
{CC"disableElfSectionCache", CC"()V", (void*)&WB_DisableElfSectionCache },
+ {CC"resolvedMethodRemovedCount", CC"()I", (void*)&WB_ResolvedMethodRemovedCount },
};