RFR: 8371740 : LinkedTransferQueue.poll() returns null even though queue is not empty
Viktor Klang
vklang at openjdk.org
Mon Nov 24 22:53:28 UTC 2025
On Mon, 24 Nov 2025 18:46:03 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Adds the patch by @DougLea
>
> test/jdk/java/util/concurrent/BlockingQueue/MissedPoll.java line 67:
>
>> 65: for (var future : futures) {
>> 66: if (future.get() != 0)
>> 67: throw new Error();
>
> Good test, maybe change this to RuntimeException that includes the error count.
I'm not sure that the error count really helps
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28479#discussion_r2557957503
More information about the core-libs-dev
mailing list