Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 21946 invoked from network); 2 Aug 2006 14:17:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 14:17:05 -0000 Received: (qmail 93964 invoked by uid 500); 2 Aug 2006 14:17:01 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 93925 invoked by uid 500); 2 Aug 2006 14:17:01 -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 93914 invoked by uid 99); 2 Aug 2006 14:17:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 07:17:01 -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 gshimansky@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 07:17:00 -0700 Received: by nf-out-0910.google.com with SMTP id x4so653102nfb for ; Wed, 02 Aug 2006 07:16:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=cvNsMIJHtqyvOOMS12lqeKP3iiNVLyZNcK9SyrgF4whKf93LgbWxZw3pkTURZeyAYu1Oyt+G7mllmIxg/pKECLmsu3KVrPbjaYsa5n19vWANsQo01n0LnLsmsGubhjVO9aGDIN73L+00Vxetq0Ocw3u6warU2YB+H0x2Ikp1+W8= Received: by 10.48.162.15 with SMTP id k15mr2246751nfe; Wed, 02 Aug 2006 07:16:38 -0700 (PDT) Received: from ppp85-140-225-251.pppoe.mtu-net.ru ( [85.140.225.251]) by mx.gmail.com with ESMTP id k24sm3381nfc.2006.08.02.07.16.37; Wed, 02 Aug 2006 07:16:37 -0700 (PDT) From: Gregory Shimansky Reply-To: harmony-dev@incubator.apache.org To: harmony-dev@incubator.apache.org Subject: Re: [classlib] Plan on work on java.lang.instrument Date: Wed, 2 Aug 2006 18:16:36 +0400 User-Agent: KMail/1.9.1 References: <44D01E9A.30800@gmail.com> <44D0A90E.2030603@gmail.com> In-Reply-To: <44D0A90E.2030603@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608021816.36568.gshimansky@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wednesday 02 August 2006 17:30 Paulex Yang wrote: > Alexey Varlamov wrote: > > [SNIP] > > > >> For native codes, instrument need a new directory in > >> modules/luni/src/main/native named "instrument", in my plan, there > >> should be two native code, one for instrument native implementation, and > >> another for laugher (for parameter "-javaagent"). Instrument shall be > >> compiled into a .DLL(.so) file alone. > > > > Jimmy, > > Could you please add some details on the launcher part? I'd rather > > think that common VM launcher should be updated to support > > "-javaagent:" option > > Agree, it should can be handled by common launcher. > > > - which is basically a second class to launch. > > I think there is some difference, actually I expect it parses the > parameters following "-javaagent:", then converts it to > "-agentlib:hyinstrument.dll..." and at last passes them to VM. I don't think there is any conversion required. I believe -javaagent is a VM option and should be handled internally by the invocation API in case there is a 3rd party launcher/plugin which tries to use VM's invocation API directly. The agent library may be even linked statically to VM and hidden from direct use on the command line. On a side note, -agentlib specifies agent library in OS independent way so it should be "-agentlib:hyinstrument=..." -- Gregory Shimansky, Intel Middleware Products Division --------------------------------------------------------------------- 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