Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 55359 invoked from network); 30 Jan 2008 12:34:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2008 12:34:31 -0000 Received: (qmail 10772 invoked by uid 500); 30 Jan 2008 12:34:20 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 10746 invoked by uid 500); 30 Jan 2008 12:34:20 -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 10737 invoked by uid 99); 30 Jan 2008 12:34:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2008 04:34:20 -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 64.233.184.227 as permitted sender) Received: from [64.233.184.227] (HELO wr-out-0506.google.com) (64.233.184.227) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2008 12:33:53 +0000 Received: by wr-out-0506.google.com with SMTP id 50so85370wra.18 for ; Wed, 30 Jan 2008 04:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=w/+QpcGb7i0WuJbHcRYxTXCMwzhW2v6cvSDiqMbofak=; b=CLsRlVnOg/qMc9VO+y5rtdAaH8kk2Siqh36IwBE5bMw672Lz5wrtbIPbHIQkJ+UDx1dxQhVsm0WCUd6o8dogAm2cPGqRZuFzKkV3jCMfcA2b8CG1qLaMBNFA7lqDnw79x9pVWs1apFkY5DAbMzkGVG3GO3mpUg+HB3B2gqssLEA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MQiy6bniBofayVQn9XiWBXCDRcL9/MmUUcnQ7Rr8j5NdMm2cgEkyWnnA9OdxW/TFGr6jIHn4Z5I9TGU6o/LK/Ny3NZIGcoTYh7r7rlmGjJDJNusc7Qi07jE879DTcnUZbW+6HbzgOSmURKh/cBgvhG3gYGuUgoaIt8dxR2yhcJI= Received: by 10.150.198.14 with SMTP id v14mr67625ybf.134.1201696439683; Wed, 30 Jan 2008 04:33:59 -0800 (PST) Received: by 10.150.140.12 with HTTP; Wed, 30 Jan 2008 04:33:59 -0800 (PST) Message-ID: <9623c9a50801300433s256b93b9m4740dd4038733ec5@mail.gmail.com> Date: Wed, 30 Jan 2008 20:33:59 +0800 From: "Xiao-Feng Li" To: dev@harmony.apache.org Subject: Re: [drlvm][gc] How to iterate MOS? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9623c9a50801282345g11cd6975p611e4a2d7e13c83a@mail.gmail.com> <9623c9a50801290514k2926606ds93aa76ca369a62a9@mail.gmail.com> <9623c9a50801300150t561c9dcbuad71a167755f44b1@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Jan 30, 2008 6:18 PM, Yuri Kashnikoff wrote: > By copying modified code of gc_gen_iterate_heap() here I've tried to > understand how to iterate heap in different situations. Sorry, if this > is inappropriate. But the problem mentioned above is still exist > (without iterating mutator list and assigning block->free). > Yuri, simply copying gc_gen_iterate_heap() doesn't work, because the heap state could be transient during collection. Especially for the second insertion, it is in the middle of a transition from a minor collection to a major collection, so the objects' states are not consistent. Does your original code without mutator iteration work for you to iterate live objects in MOS? Thanks, xiaofeng > -- > Yuri S. Kashnikov > Novosibirsk State University, Russia > 2 Pirogova street > 630090, Novosibirsk-90 > yuri.kashnikoff@gmail.com > -- http://xiao-feng.blogspot.com