Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 78228 invoked from network); 21 Nov 2007 01:32:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2007 01:32:27 -0000 Received: (qmail 22812 invoked by uid 500); 21 Nov 2007 01:32:13 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 22781 invoked by uid 500); 21 Nov 2007 01:32:13 -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 22772 invoked by uid 99); 21 Nov 2007 01:32:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 17:32:13 -0800 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 (athena.apache.org: domain of rdasgupt@gmail.com designates 64.233.170.188 as permitted sender) Received: from [64.233.170.188] (HELO rn-out-0102.google.com) (64.233.170.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2007 01:32:03 +0000 Received: by rn-out-0102.google.com with SMTP id e25so1465913rng for ; Tue, 20 Nov 2007 17:30:11 -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:references; bh=nsjqVtahaAqfUcbk50bc/L/P0NnGhvPB2cpZydPP4b8=; b=gRxa9dzy7DnUZn/eiMrDMeacjn3PjDQPEhF+OlGPZmo3KACXSYdR53zc9+Th2NhasdqTXOzISnJYSg770Q6JFDmRp4HRdEg+40jo57W8wM7XOctuGWMRMI7QWSXy0hHV58QGVrNLHMkrQTiAins6NMVmI2s2+62HkmIO/QlA8IE= 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=LxFQGx2RN029AUzvRz7c387Apyd4JC8l5zWjPiIsUj25U22oY0Bqem/h+pkbVCscWtkW9alGtEjlZB6SMV65iRBhRc0NaDEKKDRA+9Ut3nQoEAERFfyZ6c7ZdLJOScZmC3flcLFORrQ3FSlztdEzzVOAfdo7kP3SXHhd0ymGae0= Received: by 10.142.49.4 with SMTP id w4mr1830747wfw.1195608611005; Tue, 20 Nov 2007 17:30:11 -0800 (PST) Received: by 10.142.185.7 with HTTP; Tue, 20 Nov 2007 17:30:11 -0800 (PST) Message-ID: <51d555c70711201730p5a224ca0sc8d4dd1b2489a57d@mail.gmail.com> Date: Tue, 20 Nov 2007 18:30:11 -0700 From: "Rana Dasgupta" To: dev@harmony.apache.org Subject: Re: [drlvm][regression] FAILED Linux x86: jdktools-test debug In-Reply-To: <4743784F.4090008@apache.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8446_25957021.1195608611038" References: <200711192005.lAJK5OHE004467@mssmon01.ims.intel.com> <1e3228450711192156q4ca771b7p49b4cc10e678ea79@mail.gmail.com> <4742EC14.3070007@apache.org> <51d555c70711200929h215b559fpf4a28dcb6a3d90a0@mail.gmail.com> <4743784F.4090008@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8446_25957021.1195608611038 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Nov 20, 2007 5:14 PM, Gregory Shimansky wrote: > Rana Dasgupta wrote: > >> On 11/20/07, Gregory Shimansky wrote: > >> This may be difficult to do in this implementation, since by the time > the VM > >> gets back control in the class unloading cycle, it is possibly too late > to > >> do this. > > >I think in case JVMTI is enabled, and agent requests this event to >be > >supported it is possible to create a collection of weak references to > >class objects. Once a weak reference is enqueued, VM would >send an event > >to the agent, and it creates a strong reference, unloading shall > >automatically be canceled. Otherwise the class would be unloaded >in the > >normal way. > I think this may be possible if, as you describe,the agent is signalled and it makes the decision about about resurrecting the reference in time order before VM hands off to GC. I don't really know JVMTI, is it possible for there to be a race here since the agent thread is not suspended? > > -- > Gregory > > ------=_Part_8446_25957021.1195608611038--