Skip to content
Permalink
Browse files
8269743: test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/jni/native…
…AndMH/Test.java crash with small heap (-Xmx50m)

Reviewed-by: dholmes
  • Loading branch information
miao-zheng authored and DamonFool committed Jul 2, 2021
1 parent 589f084 commit 2baf498eb5bcdd12b2b969222414a43bdf5eb256
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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));

1 comment on commit 2baf498

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 2baf498 Jul 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.