8141213: [Parfait]Potentially blocking function GetArrayLength called in JNI critical region at line 239 of jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c in function GET_ARRAYS
Reviewed-by: prr, serb
This commit is contained in:
parent
f03a55be9e
commit
69c0fd73d3
@ -234,9 +234,9 @@ static int GET_ARRAYS(JNIEnv *env, sun_jpeg_source_ptr src)
|
||||
}
|
||||
if (src->hOutputBuffer) {
|
||||
assert(src->outbuf.ip == 0);
|
||||
src->outbufSize = (*env)->GetArrayLength(env, src->hOutputBuffer);
|
||||
src->outbuf.ip = (int *)(*env)->GetPrimitiveArrayCritical
|
||||
(env, src->hOutputBuffer, 0);
|
||||
src->outbufSize = (*env)->GetArrayLength(env, src->hOutputBuffer);
|
||||
if (src->outbuf.ip == 0) {
|
||||
RELEASE_ARRAYS(env, src);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user