hotspot/src/share/vm/ci/ciEnv.cpp
changeset 46271 979ebd346ecf
parent 46262 83280d968b96
child 46289 1904e7ec236e
--- a/hotspot/src/share/vm/ci/ciEnv.cpp	Tue Feb 14 20:00:28 2017 -0800
+++ b/hotspot/src/share/vm/ci/ciEnv.cpp	Wed Feb 15 22:59:57 2017 -0500
@@ -276,7 +276,7 @@
     if (!HAS_PENDING_EXCEPTION && k != NULL) {
       oop obj = InstanceKlass::cast(k)->allocate_instance(THREAD);
       if (!HAS_PENDING_EXCEPTION)
-        objh = JNIHandles::make_global(obj);
+        objh = JNIHandles::make_global(Handle(THREAD, obj));
     }
     if (HAS_PENDING_EXCEPTION) {
       CLEAR_PENDING_EXCEPTION;