RFR: 8269418: jdk/jfr/event/oldobject/TestObjectSize.java failed with "RuntimeException: No events: expected false, was true"

Jaroslav Bachorik jbachorik at openjdk.java.net
Thu Sep 2 18:13:27 UTC 2021


On Thu, 2 Sep 2021 12:55:01 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

> Greetings,
> 
> please help review these adjustments to make the test more robust, i.e. neither trap on an invalid assertion nor timeout because of too many retries.
> 
> Testing: jdk_jfr (300 times)
> 
> Thanks
> Markus

test/jdk/jdk/jfr/event/oldobject/TestObjectSize.java line 106:

> 104:                         sizeLeak2 = objectSize;
> 105:                     }
> 106:                     if (type.getName().equals(Leak3.class.getName()) && sizeLeak3 == -1) {

So, this fix about not rewriting `sizeLeakN` variables in subsequent retries as each retry might have only a subset of those variables properly set, correct?

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

PR: https://git.openjdk.java.net/jdk/pull/5350


More information about the hotspot-jfr-dev mailing list