changeset 50861:976334531950

8204561: JVM_GetClassSigners: wrap signers oop in an objArrayHandle for subsequent safepoint Reviewed-by: coleenp, stuefe
author rrich
date Fri, 08 Jun 2018 06:59:16 +0200
parents 538dd69b60c0
children 6ed16c1cafc5
files src/hotspot/share/prims/jvm.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.