RFR: 8371740 : LinkedTransferQueue.poll() returns null even though queue is not empty

Alan Bateman alanb at openjdk.org
Mon Nov 24 18:49:18 UTC 2025


On Mon, 24 Nov 2025 17:31:20 GMT, Viktor Klang <vklang at openjdk.org> wrote:

> Adds the patch by @DougLea

Marked as reviewed by alanb (Reviewer).

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.

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

PR Review: https://git.openjdk.org/jdk/pull/28479#pullrequestreview-3501755098
PR Review Comment: https://git.openjdk.org/jdk/pull/28479#discussion_r2557343595


More information about the core-libs-dev mailing list