On Thu, 14 Nov 2024 09:30:28 GMT, Alan Bateman <al...@openjdk.org> wrote:
> In passing I wonder if we can replace the sleeps with code that we use in > other tests to poll the thread's stack until it is observed in the expected > method. Not for this PR of course. The `AsyncClose` test launches several other tests and like you note, each of these appear to have `Thread.sleep(...)` for the other Thread to arrive for specific operations. As suggested, I'll file a JBS issue to update them to use the Thread stack evaluation technique that we use in some other tests. ------------- PR Comment: https://git.openjdk.org/jdk/pull/22093#issuecomment-2476266733