RFR: 8304835 jdk/jfr/event/oldobject/TestArrayInformation.java fails with "Could not find event with class ... as (leak) object"

Aleksey Shipilev shade at openjdk.org
Wed Jun 14 13:06:57 UTC 2023


On Wed, 14 Jun 2023 12:47:57 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> Could I have a review of a test fix?
> 
> The test fails intermittently because it's hard to guarantee that an object is being sampled. Fix is to repeat until one is found.
> 
> Testing: jdk/jdk/event/oldObject/TestArrayInformation.java
> 
> Thanks
> Erik

So now the "failing" test would timeout? This does not look right.

How many tries it usually takes to get a lucky sample? Take that estimate and do about 10x more iterations and fail, if still not found?

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

PR Review: https://git.openjdk.org/jdk/pull/14467#pullrequestreview-1479392947


More information about the hotspot-jfr-dev mailing list