harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr <g...@pobox.com>
Subject Re: [classlib][instrument]and[VM]:launcher with parameter "javaagent"
Date Mon, 21 Aug 2006 14:25:04 GMT


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


Mime
View raw message