Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 45132 invoked from network); 2 Oct 2006 13:20:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 13:20:23 -0000 Received: (qmail 19682 invoked by uid 500); 2 Oct 2006 13:20:23 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 19643 invoked by uid 500); 2 Oct 2006 13:20:23 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 19632 invoked by uid 99); 2 Oct 2006 13:20:23 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 06:20:23 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from [140.211.166.113] ([140.211.166.113:63416] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 54/E9-16499-F0211254 for ; Mon, 02 Oct 2006 06:20:17 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id A7E171A981D; Mon, 2 Oct 2006 06:19:58 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: harmony-commits@incubator.apache.org From: tellison@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061002131958.A7E171A981D@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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;