Skip to content

Commit

Permalink
8269743: test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/jni/native…
Browse files Browse the repository at this point in the history
…AndMH/Test.java crash with small heap (-Xmx50m)

Backport-of: 2baf498eb5bcdd12b2b969222414a43bdf5eb256
  • Loading branch information
GoeLin committed Oct 18, 2022
1 parent 5eb0943 commit 45a68a3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -56,7 +56,8 @@ Java_vm_mlvm_meth_stress_jni_nativeAndMH_Test_native01(

NSK_JNI_VERIFY(pEnv, NULL != (objectClass = pEnv->FindClass("java/lang/Object")));

NSK_JNI_VERIFY(pEnv, NULL != (arguments = pEnv->NewObjectArray(ARGS_COUNT, objectClass, NULL)));
if (!NSK_JNI_VERIFY(pEnv, NULL != (arguments = pEnv->NewObjectArray(ARGS_COUNT, objectClass, NULL))))
return NULL;

NSK_JNI_VERIFY_VOID(pEnv, pEnv->SetObjectArrayElement(arguments, 0, a1));
NSK_JNI_VERIFY_VOID(pEnv, pEnv->SetObjectArrayElement(arguments, 1, a2));
Expand Down

0 comments on commit 45a68a3

Please sign in to comment.