Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 58386 invoked from network); 12 Nov 2007 21:31:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 21:31:30 -0000 Received: (qmail 40068 invoked by uid 500); 12 Nov 2007 21:31:15 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 40050 invoked by uid 500); 12 Nov 2007 21:31:15 -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 40041 invoked by uid 99); 12 Nov 2007 21:31:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 13:31:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xiaofeng.li@gmail.com designates 209.85.132.242 as permitted sender) Received: from [209.85.132.242] (HELO an-out-0708.google.com) (209.85.132.242) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 21:31:18 +0000 Received: by an-out-0708.google.com with SMTP id b8so240720ana for ; Mon, 12 Nov 2007 13:30:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; 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:content-transfer-encoding:content-disposition:references; bh=hVbNtqTpOKZYzyFJRzKXynZlHBqXwJOg25FbaGt4kdg=; b=XLbFfsiav9+bvq6ZySC4cuYX38GPAisDsV0kRaG8AGCRJ4if7QxD1004ogZ7dvcg9ko7ZGIdxbkDxyPs4Cp4HfJpxBejii8XMyqCgunPNCy7J99GNgNbLVxAoL+5tqFbqNezLjbhKQhPJ/KYH6yMVBfEMBFnlR4EJt3FlLU8rQw= 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:content-transfer-encoding:content-disposition:references; b=D3JqxgZwJjtdKjxgPNmWoqgCBcxdEwbpe7wc9FamErMvueenEzHEA7rQGcMPYS6Ijpm3HbrB5vrY6Aw3sGimDxsc2XNXM6iqoGuQZ4z9+Fqn8iDhjoueMMYIp7ZN6hOp2cCtMCB1E1wh4hXEgcTSItv6xiK5iNn8y5x8pbiTS10= Received: by 10.100.248.9 with SMTP id v9mr2318460anh.1194903057716; Mon, 12 Nov 2007 13:30:57 -0800 (PST) Received: by 10.90.71.6 with HTTP; Mon, 12 Nov 2007 13:30:57 -0800 (PST) Message-ID: <9623c9a50711121330t4e57da56p361e5f6d438e3e38@mail.gmail.com> Date: Tue, 13 Nov 2007 05:30:57 +0800 From: "Xiao-Feng Li" To: dev@harmony.apache.org Subject: Re: [drlvm][GC]Bad Pointer during GC v5 shutdown sequence In-Reply-To: <32259710711120546x2cd1a3c4n63e12ba9e3165665@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <32259710711090840y3bc910c1s2e7ae332878b0029@mail.gmail.com> <51d555c70711101113y7ca173b9v55b042966048f62c@mail.gmail.com> <32259710711120546x2cd1a3c4n63e12ba9e3165665@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org The patch is great. Some improvement is necessary before committing. Please check the comments I put in the JIRA issue. Thanks, xiaofeng On 11/12/07, Ilya Leviev wrote: > Rana, > > Thank you for evaluation and a quick patch. It seems that the patch > you have prepared solves the problem with invalid pointer. > > To check that the patch fixes the memory leak I've applied your patch > and rerun BoundsChecker. The tool detected no leek related to this > issue with your patch applied. Thank you again for the great job: your > patch decreased leaks by 256 MB! > > Best regards, > Ilya. > > > On 11/10/07, Rana Dasgupta wrote: > > Illya, > > Yes, it's possible that there could be a leak. An assert added to > > vm_unmap_mem() does show that the VirtualFree fails. The pointer parameter > > etc. passed to the function are invalid because the sections of the heap ( > > nos, mos etc. ) have already been freed with STD_FREE. > > The root cause is that for VirtualFree() to successfully release on > > Windows, it needs to be called from the exact VirtualAlloc allocation base. > > I have attached a quick fix in > > H5105 > > which you can try. Xiao Feng needs to look at it. > > > > Rana > > > -- http://xiao-feng.blogspot.com