On Thu, 27 Jun 2024 08:54:16 GMT, Kevin Walls <kev...@openjdk.org> wrote:

> This test has had occasional failures for years, possibly forever.
> A previous update made the test "othervm" which removed some interruptions, 
> but a time accounting problem remains.
> 
> This change adds a simple sleep after observing that the test threads are all 
> sleeping.
> 
> The idea is that threads may not have actually started sleeping when we 
> observe their java.lang.Thread.State as WAITING, they may use some CPU time 
> after that in order to actually get to sleep.

Looks good, and thank you for giving me a clue as to why 
[JDK-8269881](https://bugs.openjdk.org/browse/JDK-8269881) has probably been 
causing test failures for 4 years now. :)

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

Marked as reviewed by cjplummer (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/19924#pullrequestreview-2148687640

Reply via email to