mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8231770: Test java/util/zip/FlaterTest.java fails with -Xcheck:jni
Reviewed-by: alanb, coffeys, chegar
This commit is contained in:
parent
a683592254
commit
4b36fb50ed
2 changed files with 5 additions and 4 deletions
|
@ -257,7 +257,7 @@ Java_java_util_zip_Deflater_deflateBufferBytes(JNIEnv *env, jobject this, jlong
|
|||
|
||||
res = doDeflate(env, addr, input, inputLen, output + outputOff, outputLen,
|
||||
flush, params);
|
||||
(*env)->ReleasePrimitiveArrayCritical(env, outputArray, input, 0);
|
||||
(*env)->ReleasePrimitiveArrayCritical(env, outputArray, output, 0);
|
||||
|
||||
retVal = checkDeflateStatus(env, addr, inputLen, outputLen, params, res);
|
||||
return retVal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue