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

Andrei Pangin apangin at openjdk.org
Fri Sep 19 12:50:36 UTC 2025


On Fri, 19 Sep 2025 11:46:39 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:

>> Johannes Bechberger has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove synchronized
>
> Interesting. I'm further simplifying the test case, removing all the time-box code.

@parttimenerd Oh, my previous comment about `synchronized` was incorrect: you still have concurrency between the main thread and `RecordingStream` async processor - sorry for confusion.
I also think you need to call `rs.stop()` (which internally calls `awaitTermination`) before closing the stream. This should fix the race in the David's case.

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

PR Comment: https://git.openjdk.org/jdk/pull/27293#issuecomment-3312072149


More information about the hotspot-dev mailing list