Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 58463 invoked from network); 16 Aug 2006 09:19:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2006 09:19:11 -0000 Received: (qmail 63945 invoked by uid 500); 16 Aug 2006 09:19:08 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 63773 invoked by uid 500); 16 Aug 2006 09:19:07 -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 63756 invoked by uid 99); 16 Aug 2006 09:19:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 02:19:07 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of xiaofeng.li@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 02:19:06 -0700 Received: by ug-out-1314.google.com with SMTP id u40so104919ugc for ; Wed, 16 Aug 2006 02:18:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fOfJhnTi8gQsAgfJpbhmh8x0NyI3P9SOcVyUukIR0k0bbFS/XX8oHEOMhubZ4CM/xLzmciwZ5tOVvtGsiTlMEiFU1c8Yd/kszr8aX0nm3d9giMAwB+pxsanChma490sCb20Lk/jHzFVjZMEG3PKygLYdNADM5MzCozpNbaCaX3Y= Received: by 10.67.24.13 with SMTP id b13mr233855ugj; Wed, 16 Aug 2006 02:18:45 -0700 (PDT) Received: by 10.67.10.9 with HTTP; Wed, 16 Aug 2006 02:18:45 -0700 (PDT) Message-ID: <9623c9a50608160218v2b2afc11j545bc449968c6853@mail.gmail.com> Date: Wed, 16 Aug 2006 17:18:45 +0800 From: "Xiao-Feng Li" To: harmony-dev@incubator.apache.org Subject: Re: [drlvm] Helper inlining in JIT In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4dd1f3f00608091423v64d1a5cue389a2d8b4f9512d@mail.gmail.com> <51d555c70608111850v2a437935h972f631efd8e19f3@mail.gmail.com> <9623c9a50608130629n5dc4c229w97f4e9159713ad22@mail.gmail.com> <51d555c70608152216m2aacb358sf039b4c117e176ee@mail.gmail.com> <9623c9a50608160152u6678825fv2f642b9daced6bbe@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/16/06, Mikhail Fursov wrote: > On 8/16/06, Xiao-Feng Li wrote: > > > > > > > AFAIU it's enough to annotate JNI method with calling convention > > details > > > and to support it in JIT and VM. So I see no difference in > > implementation > > > with helper inlining here. Just an extension or another version of > > helper > > > inlining mechanism. > > > Am I missing something about JNI support? > > > > Yes, I guess you were missing something. ;-) > > The service routine inlining is to attack the performance issue > > brought when Java code calls into VM native services. If the JNI is > > not a problem, this Java inlining can be not very interesting. > > > So why can't we optimize native (JNI) calls from Java code using annotations > similar to those used to annotate helper's slow call above? > Once developer annotates native call with information about it's sideffects > we can optimize the call and reduce JNI overhead. > ? This is off-topic now. :-) But one (crazy) idea is to compile the native code with JVM compiler as well so that both Java and native code can use same IR. Thanks, xiaofeng --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org