[jdk16] RFR: 8250903: jdk/jfr/javaagent/TestLoadedAgent.java fails with Mismatch in TestEvent count

Markus Grönlund mgronlun at openjdk.java.net
Wed Jan 6 18:59:03 UTC 2021


On Tue, 5 Jan 2021 20:20:43 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> Hi,
> 
> Could I have review of a test fix? 
> 
> Tests fails intermittently, most likely due to JFR not able to keep up with the high event rate. Purpose of the test is not to stress JFR, so events are now only emitted from one thread. I also changed the assert, so it is easier to see how much off the count is. 
> 
> Tested by running it 100 times without failure.
> 
> Thanks
> Erik

Marked as reviewed by mgronlun (Reviewer).

test/jdk/jdk/jfr/javaagent/EventEmitterAgent.java line 38:

> 36: import jdk.test.lib.jfr.EventNames;
> 37: 
> 38: // Java agent that emits in multiple threads

Update this comment?

-------------

PR: https://git.openjdk.java.net/jdk16/pull/87


More information about the hotspot-jfr-dev mailing list