8058739: The test case failed as "ERROR in native method: ReleasePrimitiveArrayCritical: failed bounds check"
authorazvegint
Tue, 23 Sep 2014 20:17:56 +0400
changeset 27051 1d67c856f347
parent 27050 e0bbc2e0ae2d
child 27052 0b783c32e5c2
8058739: The test case failed as "ERROR in native method: ReleasePrimitiveArrayCritical: failed bounds check" Reviewed-by: prr, serb
jdk/src/java.desktop/windows/native/libawt/java2d/windows/GDIRenderer.cpp
--- 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);
     }