Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 24922 invoked from network); 9 Nov 2006 16:44:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2006 16:44:32 -0000 Received: (qmail 98072 invoked by uid 500); 9 Nov 2006 16:44:39 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 98037 invoked by uid 500); 9 Nov 2006 16:44:39 -0000 Mailing-List: contact harmony-dev-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-dev@incubator.apache.org Received: (qmail 98015 invoked by uid 99); 9 Nov 2006 16:44:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 08:44:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.11.181.4] (HELO griffin.griffaction.ca) (66.11.181.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 08:44:26 -0800 Received: from [127.0.0.1] (helo=[127.0.0.1]) by griffin.griffaction.ca with esmtp (Exim 4.50 #1 (Debian)) id 1GiD0X-0000jw-8y for ; Thu, 09 Nov 2006 11:44:05 -0500 Message-ID: <455359C2.6070407@sablevm.org> Date: Thu, 09 Nov 2006 11:39:30 -0500 From: Etienne Gagnon User-Agent: Debian Thunderbird 1.0.2 (X11/20060927) X-Accept-Language: en-us, en MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [drlvm] Class unloading support - tested one approach References: <5836de490610240251p120dfa56x736fbb5eb1898aca@mail.gmail.com> <4551B15B.2070101@anu.edu.au> <5836de490611080250l6dfbd38cw8778f7a055373d82@mail.gmail.com> <4551B83D.9020706@anu.edu.au> <4551CBDB.90004@anu.edu.au> <45531ED7.7030904@sablevm.org> <455324E1.2040301@anu.edu.au> <45535741.2080207@sablevm.org> In-Reply-To: <45535741.2080207@sablevm.org> X-Enigmail-Version: 0.91.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD7433FBA9E5992E41BCD842C" X-Virus-Checked: Checked by ClamAV on apache.org --------------enigD7433FBA9E5992E41BCD842C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Etienne Gagnon wrote: > Salikh Zakirov wrote: > >>I have another concern though: >>just before starting "final unloading" collection, we scan vtable marks and identify >>the candidates for unloading. During the "final unloading" collection, the >>candidate classloader roots are reported as week. At the end of the trace, >>we need to rescan vtable marks and "revive" the classloader which were found >>in possession of live objects. This techniques is exactly the same as the one >>used for object finalization. >> >>However, in contrast with finalization, we will need to repeat reviving >>classloaders which have non-0 vtable marks until the process converges, and no >>new classloaders are revived. (* in finalization, both dead and live objects in finalization >>queue are revived, and thus the revival converges in just 1 step *). In case you chose the finalization-like + revival way, then I don't see any significant performance hit of multiple-step convergence! For one thing, you'll probably agree with me that it is quite unlikely to take more than 1 step to converge in most cases, and the additional work in the other cases is still quite insignificant relative to the remaining collection work! Etienne -- Etienne M. Gagnon, Ph.D. http://www.info2.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ --------------enigD7433FBA9E5992E41BCD842C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFFU1nDjyrJi4rH84gRAlAmAJ4gKYhGlPBygx6Oo2f6jLkZJ+CpNQCfcJlq pLEM5DtbT3yRzIEyGQYH5Hk= =fkMf -----END PGP SIGNATURE----- --------------enigD7433FBA9E5992E41BCD842C--