Integrated: 8335124: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed with CPU time out of expected range
Kevin Walls
kevinw at openjdk.org
Fri Jun 28 19:04:22 UTC 2024
On Thu, 27 Jun 2024 08:54:16 GMT, Kevin Walls <kevinw at 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.
This pull request has now been integrated.
Changeset: 79a3554e
Author: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/79a3554e1da604627b3a010dc269c1bd914c79d3
Stats: 3 lines in 1 file changed: 2 ins; 1 del; 0 mod
8335124: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed with CPU time out of expected range
Reviewed-by: phh, cjplummer
-------------
PR: https://git.openjdk.org/jdk/pull/19924
More information about the serviceability-dev
mailing list