Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 73424 invoked from network); 23 May 2007 16:36:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2007 16:36:38 -0000 Received: (qmail 10181 invoked by uid 500); 23 May 2007 16:36:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 10162 invoked by uid 500); 23 May 2007 16:36:43 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 10143 invoked by uid 99); 23 May 2007 16:36:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 09:36:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 09:36:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 31B0E714069 for ; Wed, 23 May 2007 09:36:17 -0700 (PDT) Message-ID: <33524667.1179938177201.JavaMail.jira@brutus> Date: Wed, 23 May 2007 09:36:17 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3148) [Classlib][nio] alloc many DirectByteBuffers may cause memory-out-error In-Reply-To: <23492583.1171012685830.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498289 ] Alexey Petrenko commented on HARMONY-3148: ------------------------------------------ And do not forget that System.gc call do not guarantee immediate GC run. In fact it just notify the VM that user wants to run gc. > [Classlib][nio] alloc many DirectByteBuffers may cause memory-out-error > ----------------------------------------------------------------------- > > Key: HARMONY-3148 > URL: https://issues.apache.org/jira/browse/HARMONY-3148 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Jimmy, Jing Lv > Assigned To: Alexey Petrenko > Attachments: H-3148_2.patch, patch-3148.zip > > > Hi, > As discussed on mailing-list, DirectByteBuffer uses native memory which is out of GC-control, alloc many DirectByteBuffer may cause memory-out-error if they are not GCed, even they can be GCed at that time. > This happens in Harmony but not in RI. This should be a bug of Harmony. > Note: other native memory users, e.g., java.util.zip.Deflater, may cause this problem as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.