Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 34959 invoked from network); 18 May 2007 07:36:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2007 07:36:53 -0000 Received: (qmail 66043 invoked by uid 500); 18 May 2007 07:36:57 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 66012 invoked by uid 500); 18 May 2007 07:36:56 -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 65994 invoked by uid 99); 18 May 2007 07:36:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 00:36:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of gcjhd-harmony-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 00:36:49 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hox0b-0001w8-UK for dev@harmony.apache.org; Fri, 18 May 2007 09:36:17 +0200 Received: from c-24-6-177-137.hsd1.ca.comcast.net ([24.6.177.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 May 2007 09:36:17 +0200 Received: from egor.pasko by c-24-6-177-137.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 May 2007 09:36:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@harmony.apache.org From: Egor Pasko Subject: Re: [drlvm][jit][performance] Suggestion: Let's write some small and hot native(kernel) methods on vmmagics. Date: 18 May 2007 00:36:06 -0700 Lines: 45 Message-ID: <0vqps4ymvmh.fsf@gmail.com> References: <253b20230705170751v540cf115w2236040f9302d7f@mail.gmail.com> <253b20230705170811i21c9e48fsca07fbb715764c2f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-24-6-177-137.hsd1.ca.comcast.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org On the 0x2D9 day of Apache Harmony Mikhail Fursov wrote: > On 5/18/07, Alexey Varlamov wrote: > > > > As long as annotations are not a part of specifications, and magic > > impls are general enough to not depend on runtime configuration > > (particular VM components etc), this approach looks neat. > > Another issue with using arbitrary magics is potential risk of > > security breaches; we need to think how to control & restrict origin > > of magic codes - like allowing only predefined bootstrap packages a la > > "org.apache.harmony.security.fortress" or introducing & checking > > dedicated security permissions. > > > It's good to restrict magics to be used only in bootstrap classes. In this > case I see no security problems. (?) Does The Standard allow extra unspecified annotations in bootstrap classes? > 2007/5/17, Sergey Kuksenko : > > > Mikhail, > > > I wrote about it: > > > "From the other side it is incorrect having a main implemenation of > > these > > > methods on vmmagics. Because it needs to support vmmagics in interpreter > > > and/or any jit. Jitrino supports vmmagics, but for classlib > > implementation > > > we shouldn't rely on such support from JIT side." > > > That if JIT supports vmmagics then it should replace calls of original > > > methods to vmmagic-based methods. > > > The idea with annotations is good. But I have a question, where(in which > > > class/jar) should be located magic version of method? > > > > This one is easy - either package magics along with the supported > > classes, this only adds 1 external dependency to vmmagic.jar; or > > package them separately as -magics.jar and handle via > > bootclasspath.properties as any other jar. > > > > We can write magic method in the same class with original. Are there any > potential problems with it? > > -- > Mikhail Fursov -- Egor Pasko