harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r452028 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSFileSystem.c
Date Mon, 02 Oct 2006 13:19:58 GMT
Author: tellison
Date: Mon Oct  2 06:19:57 2006
New Revision: 452028

URL: http://svn.apache.org/viewvc?view=rev&rev=452028
Log:
Optimize memory release, don't copy array back to Java.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSFileSystem.c

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSFileSystem.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSFileSystem.c?view=diff&rev=452028&r1=452027&r2=452028
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSFileSystem.c
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSFileSystem.c
Mon Oct  2 06:19:57 2006
@@ -97,7 +97,7 @@
                          (IDATA) nbytes);
   if (isCopy == JNI_TRUE)
     {
-      (*env)->ReleaseByteArrayElements (env, byteArray, bytes, 0);
+      (*env)->ReleaseByteArrayElements (env, byteArray, bytes, JNI_ABORT);
     }
 
   return result;



Mime
View raw message