RFR(S): 8226779: [TESTBUG] Test JFR API from Java agent

mikhailo.seledtsov at oracle.com mikhailo.seledtsov at oracle.com
Wed Aug 21 17:57:13 UTC 2019


After feedback and some refactoring from Erik, here is the updated webrev:

     http://cr.openjdk.java.net/~mseledtsov/8226779.03/

      JavaAgentBuilder.java - a utility class that can be reused to 
build common java agents for testing

      EventEmitterAgent.java  - the agent that emits JFR events

      TestLoadedAgent.java, TestPremainAgent.java - actual tests


Testing:

   Ran many times on Mac, Linux-x64: all PASS

   Ran many times on multiple platforms in test cluster: in progress


Thank you,

Misha


On 8/12/19 7:40 PM, mikhailo.seledtsov at oracle.com wrote:
> During conversation Erik and Markus have recommended the following 
> changes:
>
>   - change the package (and test location) to jdk.jfr.javaagent
>
>   - extract agent-related utility methods into a utility class
>
> Here is an updated webrev: 
> http://cr.openjdk.java.net/~mseledtsov/8226779.02/
>
>
> Thanks,
>
> Misha
>
> On 7/26/19 3:08 PM, mikhailo.seledtsov at oracle.com wrote:
>> Please review this new test. It is testing interaction between JFR 
>> and Java Agent,
>> creating recordings from within Java agent, both premain() and 
>> agentmain().
>> This is also a bit of a stress test since it tests large number of 
>> recordings from
>> multiple threads, from the agent, hence I placed it under 
>> jfr/stress/javaagent.
>>
>>     JBS: https://bugs.openjdk.java.net/browse/JDK-8226779
>>     Webrev: http://cr.openjdk.java.net/~mseledtsov/8226779.00/
>>     Testing:
>>       1. Running the test itself multiple times on multiple platforms 
>> - in progress
>>          (Passed on Mac so far)
>>
>> Thank you,
>> Misha
>>


More information about the hotspot-jfr-dev mailing list