Skip to content

Commit 20eba35

Browse files
author
David Holmes
committed
8269882: stack-use-after-scope in NewObjectA
Reviewed-by: kbarrett
1 parent df0e11b commit 20eba35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/prims/jni.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ JNI_ENTRY(jobject, jni_NewObjectA(JNIEnv *env, jclass clazz, jmethodID methodID,
976976
HOTSPOT_JNI_NEWOBJECTA_ENTRY(env, clazz, (uintptr_t) methodID);
977977

978978
jobject obj = NULL;
979-
DT_RETURN_MARK(NewObjectA, jobject, (const jobject)obj);
979+
DT_RETURN_MARK(NewObjectA, jobject, (const jobject&)obj);
980980

981981
instanceOop i = InstanceKlass::allocate_instance(JNIHandles::resolve_non_null(clazz), CHECK_NULL);
982982
obj = JNIHandles::make_local(THREAD, i);

0 commit comments

Comments
 (0)