8058739: The test case failed as "ERROR in native method: ReleasePrimitiveArrayCritical: failed bounds check"

Reviewed-by: prr, serb
This commit is contained in:
Alexander Zvegintsev 2014-09-23 20:17:56 +04:00
parent af478a97f4
commit fa2dc11080

View File

@ -670,7 +670,7 @@ Java_sun_java2d_windows_GDIRenderer_doFillPoly
if (ypoints != NULL) {
pPoints = TransformPoly(xpoints, ypoints, transx, transy,
tmpPts, &npoints, FALSE, FALSE);
env->ReleasePrimitiveArrayCritical(ypointsarray, xpoints, JNI_ABORT);
env->ReleasePrimitiveArrayCritical(ypointsarray, ypoints, JNI_ABORT);
}
env->ReleasePrimitiveArrayCritical(xpointsarray, xpoints, JNI_ABORT);
}