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:30:31 UTC 2025
On Thu, 18 Sep 2025 02:06:27 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 99:
>
>> 97: }
>> 98:
>> 99: public static void main(String[] args) throws Exception {
>
> A brief high-level explanation of what the test does would be useful.
> From what I understood, the test starts CPU time sampling with a short interval (1ms), temporarily disables processing of native samples to cause queue overflow, then enables it back to report lost samples. Repeats the cycle 5 times and verifies that the queue has grown by the time of the last iteration, thereby decreasing the amount of losses.
Almost. But I only check the loss. I'll use an updated version of your text.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27293#discussion_r2359312057
More information about the hotspot-jfr-dev
mailing list