Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 27654 invoked from network); 20 Apr 2007 19:03:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Apr 2007 19:03:17 -0000 Received: (qmail 35297 invoked by uid 500); 20 Apr 2007 19:03:21 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 35261 invoked by uid 500); 20 Apr 2007 19:03:21 -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 35251 invoked by uid 99); 20 Apr 2007 19:03:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2007 12:03:21 -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 mike.fursov@gmail.com designates 64.233.162.228 as permitted sender) Received: from [64.233.162.228] (HELO nz-out-0506.google.com) (64.233.162.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2007 12:03:14 -0700 Received: by nz-out-0506.google.com with SMTP id j2so834002nzf for ; Fri, 20 Apr 2007 12:02:53 -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=ZCG4o5i7FvMXaRNWlrG1r0MlfUrG5Dz5vzXc7uHMC11Dc/kfGwRMQW1h/QJM8tKG0sIeZqfrE8zXOaDUg2xzfrbTgUg/XHRxW+uQGL9rBX3eu8Y/CauBDcZd7mCYxvxMaJElPVGcr0CtrA/MGeBUVeiWBIlMLMjO1MoVJgJpQX0= 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=iTGySxZb9s8HrL0ypkFPCVpBbtcpwGswjmW9mz74K34GhbluRAMYsg5eqZB9K2613AmL075Hsh1e6YE4Cd/Co0GsoYxCBCgm4gpV1ASzBqVmMS6bG8jsxoCPHao4UdViiwZFKQtWGKisi3ABK3/bUUi05Mly1XJYDXyaB2Y0PBA= Received: by 10.114.170.1 with SMTP id s1mr1371241wae.1177095772916; Fri, 20 Apr 2007 12:02:52 -0700 (PDT) Received: by 10.115.95.12 with HTTP; Fri, 20 Apr 2007 12:02:52 -0700 (PDT) Message-ID: Date: Sat, 21 Apr 2007 02:02:52 +0700 From: "Mikhail Fursov" To: dev@harmony.apache.org Subject: Re: Harmony+Eclipse and Scrapbook Pages In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_128713_29095917.1177095772828" References: <008201c78290$6c5108e0$6401a8c0@MARVIN> <4628AEAC.5090705@gmail.com> <4628DA16.4030306@gmail.com> <1e3228450704200930y7c409132xcaa7a6617103ca36@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_128713_29095917.1177095772828 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes, JIT mode and interpreter mode are different in class resolution strategy. Here how it works: With interpreter class resolution is initiated when the class is actually needed: object of the class is created, a static field or a static method is invoked. This is the same as SUN behaviour. (AFAIK they use interpreter too) With JIT we have eager resolution today: all classes referred in a method (and all inlined methods!) are resolved during compilation time. AFAIK BEA works this way too. At least, I can write tests that demonstrate it. If a method has multiple references to a class and its resolution fails JIT asks again an again to resolve it. Moreover, if exception happened in classloader - it can be lost. Now I'm working on Lazy Resolution task and going to submit it to JIRA right after JavaOne is finished (there are a lot of changes and regressions are possible). After it's done JIT will be able to work in either eager or lazy mode. And I hope most of the resolution related bugs will gone after it. BTW did you tried the same scenario with BEA? On 4/21/07, Ivan Popov wrote: > > Yes, in interpreter mode step works fine. I don't see second attempt > to load class in classloader trace while step is performed. > > Is it possible that in JIT mode first invocation of a method of > already loaded class may lead to compilation and attempt to load this > class second time? > > Thanks. > Ivan > > On 4/20/07, Eugene Ostrovsky wrote: > > BTW everything works fine with harmony VM in interpreter mode (-Xint > option) > > > > On 4/20/07, Tim Ellison wrote: > > > > > > Ivan Popov wrote: > > > > Thanks, Mikhail, It might be useful, but I dont know how to specify > > > > options for VM running Scrapbook code, it is started automatically. > > > > > > Select the jpage page file and choose the properties option from the > > > context menu (Alt+Enter), in there you can find a 'Scrapbook Runtime' > > > page where you can specify the VM and options etc it will use. > > > > > > Tim > > > > > > > > > -- Mikhail Fursov ------=_Part_128713_29095917.1177095772828--