Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 53202 invoked from network); 14 Apr 2007 20:03:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Apr 2007 20:03:41 -0000 Received: (qmail 77668 invoked by uid 500); 14 Apr 2007 20:03:41 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 77637 invoked by uid 500); 14 Apr 2007 20:03:41 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 77628 invoked by uid 99); 14 Apr 2007 20:03:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2007 13:03:41 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of zhanghuangzhu@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2007 13:03:34 -0700 Received: by ug-out-1314.google.com with SMTP id z36so590236uge for ; Sat, 14 Apr 2007 13:03:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lb2/5yfcrYZZ9VzhdKj17SGEcpacOcjI/eXgnO7A1ICQdWE+5OJFI7WoQQqX85QRgq68pHG9Cr7AaKjjz+EEykGVLJqxZJtYGaHeCJYvco9d8PHLvx4kGpUI0ekmdAluNTMnOj6nN0VZe/U0hXKQv6UFo0AsvzCDdbD6fHyNm2Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ZPZoQeDMhG9zq1j9Kxa1EaJv5eE3PS1Oa1+XFSMYpmoJen0fdAHIYDf1BGOB3OJK15ew5dzn7Zx/RX+5hUaP1lo6doorN5vin4YZ7pjYHTa0bSpQ32VcxFuxTEAPvn095t31tEoEHcQo9O/dXi/nv4QmZZQY8HV8x7IW77lCCvw= Received: by 10.82.153.5 with SMTP id a5mr6008138bue.1176580993228; Sat, 14 Apr 2007 13:03:13 -0700 (PDT) Received: by 10.82.181.1 with HTTP; Sat, 14 Apr 2007 13:03:13 -0700 (PDT) Message-ID: <4d0b24970704141303kd439a7ej83ce42c46e7346fa@mail.gmail.com> Date: Sun, 15 Apr 2007 04:03:13 +0800 From: "Andrew Zhang" To: dev@harmony.apache.org Subject: Re: [classlib] Patch for H-3148 (OOM when using native memory which is out of GC-control) In-Reply-To: <4d0b24970704141245g2c76a0ale669ca3d0222cb09@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8434_1451957.1176580993184" References: <51abf0750704120651v3859debep1a795225181bfff1@mail.gmail.com> <3b3f27c60704121048r5090dfbfg3aa633edd3d77cae@mail.gmail.com> <461FA85E.70101@gmail.com> <4d0b24970704141245g2c76a0ale669ca3d0222cb09@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8434_1451957.1176580993184 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/15/07, Andrew Zhang wrote: > > > > On 4/13/07, Tim Ellison wrote: > > > > Nathan Beyer wrote: > > > It looks like Tim took assignment of this issue. Tim, are you working > > > on this one? > > > > If you have time to take it then please go ahead and steal it from me. > > It may be a few days before I get to study it properly (I guess my main > > concern would be performance impact of a memory check on each alloc). > > > Is it possible to pre-alloc a certain mount of memory first, and if alloc > fails, try to: > > 1. call gc > 2. realloc from native or native + prealloced memory > Or we can invoke gc when it fails to alloc memory instead of checking memory information before allocing? Regards, > > Tim > > > > > > -- > Best regards, > Andrew Zhang -- Best regards, Andrew Zhang ------=_Part_8434_1451957.1176580993184--