RFR: 8314515: java/util/concurrent/SynchronousQueue/Fairness.java failed with "Error: fair=false i=8 j=0" [v2]
Viktor Klang
vklang at openjdk.org
Wed Jan 10 18:03:34 UTC 2024
On Wed, 10 Jan 2024 18:01:01 GMT, Viktor Klang <vklang at openjdk.org> wrote:
>> While this might not fix 8314515, it should at least make it more exact.
>
> Viktor Klang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
>
> - Cleaning up Fairness.java:s underlying queue implementation access
> - Improving SynchronousQueue Fairness test to only proceed once observing that the previous thread is enqueued as a producer
test/jdk/java/util/concurrent/SynchronousQueue/Fairness.java line 101:
> 99: testFairness(false, new SynchronousQueue<>());
> 100: testFairness(false, new SynchronousQueue<>(false));
> 101: testFairness(true, new SynchronousQueue<>(true));
@AlanBateman Better? :)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17082#discussion_r1447741829
More information about the core-libs-dev
mailing list