8058739: The test case failed as "ERROR in native method: ReleasePrimitiveArrayCritical: failed bounds check"
Reviewed-by: prr, serb
--- a/jdk/src/java.desktop/windows/native/libawt/java2d/windows/GDIRenderer.cpp Tue Sep 23 16:05:05 2014 +0400
+++ b/jdk/src/java.desktop/windows/native/libawt/java2d/windows/GDIRenderer.cpp Tue Sep 23 20:17:56 2014 +0400
@@ -670,7 +670,7 @@
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);
}