8269743: test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java crash with small heap (-Xmx50m)
Reviewed-by: dholmes
This commit is contained in:
parent
589f084161
commit
2baf498eb5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user