RFR: 8371740 : LinkedTransferQueue.poll() returns null even though queue is not empty
Doug Lea
dl at openjdk.org
Tue Nov 25 12:19:11 UTC 2025
On Tue, 25 Nov 2025 12:13:20 GMT, Doug Lea <dl at openjdk.org> wrote:
>> test/jdk/java/util/concurrent/BlockingQueue/MissedPoll.java line 68:
>>
>>> 66: if (future.get() != 0)
>>> 67: throw new Error();
>>> 68: }
>>
>> @DougLea It might make sense to assert/verify that the queue is empty at the end of the test?
>
> OK, except that it would need further adjustment to force test to fail rather than getting stuck.
Ignore previous comment. I was thinking you meant assert inside tasks. At end is a good idea.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28479#discussion_r2559778561
More information about the core-libs-dev
mailing list