--- old/src/hotspot/share/runtime/jniHandles.hpp 2018-03-27 21:30:55.423525888 -0400 +++ new/src/hotspot/share/runtime/jniHandles.hpp 2018-03-27 21:30:55.143511358 -0400 @@ -28,10 +28,8 @@ #include "memory/allocation.hpp" #include "runtime/handles.hpp" -class JNIHandleBlock; class OopStorage; - // Interface for creating and resolving local/global JNI handles class JNIHandles : AllStatic { @@ -41,8 +39,8 @@ static OopStorage* _weak_global_handles; inline static bool is_jweak(jobject handle); - inline static oop& jobject_ref(jobject handle); // NOT jweak! - inline static oop& jweak_ref(jobject handle); + inline static oop* jobject_ptr(jobject handle); // NOT jweak! + inline static oop* jweak_ptr(jobject handle); template inline static oop resolve_impl(jobject handle); static oop resolve_jweak(jweak handle);