RFR: 8301341: LinkedTransferQueue does not respect timeout for poll() [v5]

Doug Lea dl at openjdk.org
Thu Jul 20 11:32:45 UTC 2023


On Fri, 7 Jul 2023 13:45:25 GMT, Viktor Klang <duke at openjdk.org> wrote:

>> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix inverted test assert; improve internal documentation; simplify code
>
> src/java.base/share/classes/java/util/concurrent/LinkedTransferQueue.java line 484:
> 
>> 482:      * be at least 4.
>> 483:      */
>> 484:     private static final int MAX_SLACK = 1 << 7;
> 
> @DougLea Any guidance on how to tune this parameter? 🤔

I removed this after finding ways to reduce slack accumulation so it isn't needed

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14317#discussion_r1269328732


More information about the core-libs-dev mailing list