Skip to content
Browse files
8269882: stack-use-after-scope in NewObjectA
Backport-of: 20eba35
  • Loading branch information
zhengyu123 committed Jul 14, 2021
1 parent c9a8220 commit 93f952c95b1db5b7226b5255b61caa539225f3e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/prims/jni.cpp
@@ -1230,7 +1230,7 @@ JNI_ENTRY(jobject, jni_NewObjectA(JNIEnv *env, jclass clazz, jmethodID methodID,
HOTSPOT_JNI_NEWOBJECTA_ENTRY(env, clazz, (uintptr_t) methodID);

jobject obj = NULL;
DT_RETURN_MARK(NewObjectA, jobject, (const jobject)obj);
DT_RETURN_MARK(NewObjectA, jobject, (const jobject&)obj);

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

1 comment on commit 93f952c


This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 93f952c Jul 14, 2021

Please sign in to comment.