Integrated: 8339979: VirtualThreadSchedulerMXBeanTest.testReduceParallelism fails intermittently
Alan Bateman
alanb at openjdk.org
Thu Oct 3 14:05:40 UTC 2024
On Wed, 2 Oct 2024 18:34:53 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> This is a test only change. VirtualThreadSchedulerMXBeanTest.testReduceParallelism can fail when getMountedVirtualThreadCount over estimates the number of mounted virtual threads.
>
> The test is changed from using getMountedVirtualThreadCount to sample the result until it reads the expected value.
>
> As part of the change, the awaitXXX supporting methods are refactored to take a predicate and the trace message.
This pull request has now been integrated.
Changeset: eb93e695
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/eb93e6952b5d2dbe78cd9680855ac99c69b3dcb2
Stats: 80 lines in 1 file changed: 57 ins; 8 del; 15 mod
8339979: VirtualThreadSchedulerMXBeanTest.testReduceParallelism fails intermittently
Reviewed-by: kevinw
-------------
PR: https://git.openjdk.org/jdk/pull/21310
More information about the serviceability-dev
mailing list