changeset 9564:039af1f9be91

8039418: [macosx] Calling JNI functions in the scope of Get/ReleasePrimitiveArrayCritical Reviewed-by: bae, prr
author serb
date Fri, 11 Apr 2014 16:18:58 +0400
parents bf44dd06cd4e
children 38db2ab1c5d6
files src/share/native/sun/java2d/loops/TransformHelper.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/java2d/loops/TransformHelper.c	Wed Apr 09 14:38:27 2014 +0400
+++ b/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);