RFR: 8345500: Timeout in jdk.jfr.api.consumer.streaming.TestJVMCrash

Erik Gahlin egahlin at openjdk.org
Thu Jan 16 19:59:38 UTC 2025


On Thu, 16 Jan 2025 19:39:01 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:

> In this fix we add 1 second delay after we create a process.
> 
> On macOS we seem to be creating a process so quickly, that other threads need time to see it.

I don't think this is the correct way to fix the issue. Users may write code that doesn't wait 1 s and run into the same problem. Why shouldn't a client be able to poll? Also, it's only a matter of time before it happens again, either because the hardware is slow or because the processes are starved due to other processes running on the machine.

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

PR Comment: https://git.openjdk.org/jdk/pull/23163#issuecomment-2596779153


More information about the hotspot-jfr-dev mailing list