Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 46379 invoked from network); 21 Aug 2006 14:25:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Aug 2006 14:25:30 -0000 Received: (qmail 17640 invoked by uid 500); 21 Aug 2006 14:25:28 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 17563 invoked by uid 500); 21 Aug 2006 14:25:26 -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 17552 invoked by uid 99); 21 Aug 2006 14:25:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Aug 2006 07:25:26 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 64.74.244.70 is neither permitted nor denied by domain of geir@pobox.com) Received: from [64.74.244.70] (HELO smtp.ivresearch.com) (64.74.244.70) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 21 Aug 2006 07:25:26 -0700 Received: (qmail 10252 invoked from network); 21 Aug 2006 14:25:03 -0000 Received: from ool-43560edb.dyn.optonline.net (HELO ?192.168.1.101?) (geir@67.86.14.219) by vdmx01.ivresearch.net with SMTP; 21 Aug 2006 14:25:03 -0000 Message-ID: <44E9C240.2030606@pobox.com> Date: Mon, 21 Aug 2006 10:25:04 -0400 From: Geir Magnusson Jr Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib][instrument]and[VM]:launcher with parameter "javaagent" References: <44E95D1E.3010501@gmail.com> In-Reply-To: <44E95D1E.3010501@gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jimmy, Jing Lv wrote: > Hi, > > On writing tests for java.lang.instrument, I find it nice Harmony > launcher can accept parameter "-javaagent" currently. Look deep into the > launcher code, I find the parameter was really parsed by VM itself > currently. > And if I use J9VM, it can accept such parameter but ask for > "instrument.dll". As we know, Harmony naming convention use "hyXXX.dll" > as dll-file name. Time to fix that. > So vm fails to load lib here. However if I copy the > file "hyinstrument.dll" to "instrument.dll", J9VM load it happily and > pass my test on Instrument. Yay! > I do not know what does DRLVM or other VMs do here (I'd like to hear > if jvmti has been implemented in DRLVM). I have zero interest in perpetuating the "hy" abhorrence. > > So Instrument testcases can not be put to svn until this problem is > solved (or it'll break build!). I guess there are two ways here: > 1. to work around, add a line in build.xml, copy the file to > "instrument.dll", and wait for VM to get updated. Or we change filename > in build system forever? Yay! > 2. I wonder if we can modify in launcher, parse the parameter and > pass the dll filename to VM? That's a very good idea - then you can "A/B" test with known good instrumentation. geir --------------------------------------------------------------------- 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