RFR: 8367302: New test jdk/jfr/event/profiling/TestCPUTimeSampleQueueAutoSizes.java from JDK-8366082 is failing

Johannes Bechberger jbechberger at openjdk.org
Thu Sep 18 13:09:27 UTC 2025


On Thu, 18 Sep 2025 01:30:44 GMT, Andrei Pangin <apangin at openjdk.org> wrote:

>> This change hopefully fixes the test failures by making the test cases more resilient.
>
> test/jdk/jdk/jfr/event/profiling/TestCPUTimeSampleQueueAutoSizes.java line 165:
> 
>> 163:         }
>> 164:         // check that there are at least 3 time boxes
>> 165:         Asserts.assertTrue(timeBoxedLosses.size() > 3);
> 
> Not sure what this assert means. From what I see, the size of `timeBoxedLosses` should be exactly equal to the number of main loop iterations (5).

It should.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27293#discussion_r2359195279


More information about the hotspot-jfr-dev mailing list