RFR: 8301341: LinkedTransferQueue does not respect timeout for poll()
Andrey Turbanov
aturbanov at openjdk.org
Tue Jun 6 15:47:54 UTC 2023
On Mon, 5 Jun 2023 18:52:00 GMT, Doug Lea <dl at openjdk.org> wrote:
> This now uses Thread.isVirtual to distinguish spin vs immediate block cases, enabling re-introduction of spin control from the previous version, removing anomalies like this one.
src/java.base/share/classes/java/util/concurrent/LinkedTransferQueue.java line 408:
> 406: * variety of processors, numbers of CPUs, and OSes.
> 407: */
> 408: private static final int FRONT_SPINS = 1 << 7;
nit
Suggestion:
private static final int FRONT_SPINS = 1 << 7;
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14317#discussion_r1219891442
More information about the core-libs-dev
mailing list