On Mon, 5 Jun 2023 18:52:00 GMT, Doug Lea <d...@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

Reply via email to