8204561: JVM_GetClassSigners: wrap signers oop in an objArrayHandle for subsequent safepoint
authorrrich
Fri, 08 Jun 2018 06:59:16 +0200
changeset 50458 976334531950
parent 50457 538dd69b60c0
child 50459 6ed16c1cafc5
8204561: JVM_GetClassSigners: wrap signers oop in an objArrayHandle for subsequent safepoint Reviewed-by: coleenp, stuefe
src/hotspot/share/prims/jvm.cpp
--- a/src/hotspot/share/prims/jvm.cpp	Thu Jun 07 22:26:02 2018 -0400
+++ b/src/hotspot/share/prims/jvm.cpp	Fri Jun 08 06:59:16 2018 +0200
@@ -1115,7 +1115,7 @@
     return NULL;
   }
 
-  objArrayOop signers = java_lang_Class::signers(JNIHandles::resolve_non_null(cls));
+  objArrayHandle signers(THREAD, java_lang_Class::signers(JNIHandles::resolve_non_null(cls)));
 
   // If there are no signers set in the class, or if the class
   // is an array, return NULL.