--- a/src/hotspot/share/runtime/sharedRuntime.hpp Tue Jul 31 16:49:51 2018 +0100
+++ b/src/hotspot/share/runtime/sharedRuntime.hpp Tue Jul 31 13:12:06 2018 -0400
@@ -486,6 +486,10 @@
// Block before entering a JNI critical method
static void block_for_jni_critical(JavaThread* thread);
+ // Pin/Unpin object
+ static oopDesc* pin_object(JavaThread* thread, oopDesc* obj);
+ static void unpin_object(JavaThread* thread, oopDesc* obj);
+
// A compiled caller has just called the interpreter, but compiled code
// exists. Patch the caller so he no longer calls into the interpreter.
static void fixup_callers_callsite(Method* moop, address ret_pc);