8039418: [macosx] Calling JNI functions in the scope of Get/ReleasePrimitiveArrayCritical
authorserb
Fri, 11 Apr 2014 16:18:58 +0400
changeset 24178 2190139aa21b
parent 24177 cbbea768ae65
child 24179 c80b1690a57b
8039418: [macosx] Calling JNI functions in the scope of Get/ReleasePrimitiveArrayCritical Reviewed-by: bae, prr
jdk/src/share/native/sun/java2d/loops/TransformHelper.c
--- a/jdk/src/share/native/sun/java2d/loops/TransformHelper.c	Thu Apr 10 22:30:58 2014 +0400
+++ b/jdk/src/share/native/sun/java2d/loops/TransformHelper.c	Fri Apr 11 16:18:58 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -384,6 +384,7 @@
         return;
     }
     Region_IntersectBounds(&clipInfo, &dstInfo.bounds);
+    Transform_GetInfo(env, itxform, &itxInfo);
 
     numedges = (((jlong) dstInfo.bounds.y2) - ((jlong) dstInfo.bounds.y1));
     if (numedges <= 0) {
@@ -423,7 +424,6 @@
         return;
     }
 
-    Transform_GetInfo(env, itxform, &itxInfo);
 
     if (!Region_IsEmpty(&clipInfo)) {
         srcOps->GetRasInfo(env, srcOps, &srcInfo);