Skip to content

Commit 93f952c

Browse files
committed
8269882: stack-use-after-scope in NewObjectA
Backport-of: 20eba35
1 parent c9a8220 commit 93f952c

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
@@ -1230,7 +1230,7 @@ JNI_ENTRY(jobject, jni_NewObjectA(JNIEnv *env, jclass clazz, jmethodID methodID,
12301230
HOTSPOT_JNI_NEWOBJECTA_ENTRY(env, clazz, (uintptr_t) methodID);
12311231

12321232
jobject obj = NULL;
1233-
DT_RETURN_MARK(NewObjectA, jobject, (const jobject)obj);
1233+
DT_RETURN_MARK(NewObjectA, jobject, (const jobject&)obj);
12341234

12351235
instanceOop i = alloc_object(clazz, CHECK_NULL);
12361236
obj = JNIHandles::make_local(env, i);

0 commit comments

Comments
 (0)