harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy, Jing Lv" <firep...@gmail.com>
Subject Re: [classlib][instrument]and[VM]:launcher with parameter "javaagent"
Date Tue, 22 Aug 2006 10:00:11 GMT
Geir Magnusson Jr wrote:
> 
> 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.

Hi,
     So Harmony is going to omit "hy" in DLLs? Do we have a plan on 
that? It'll be nice as test can work without VM changes :)

>>     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
> 
> 


-- 

Best Regards!

Jimmy, Jing Lv
China Software Development Lab, IBM

---------------------------------------------------------------------
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