The following test failed in the JDK22 CI:
java/util/concurrent/SynchronousQueue/Fairness.java
Here's a snippet from the log file:
#section:main
----------messages:(7/220)----------
command: main Fairness
reason: Assumed action based on file name: run main Fairness
started: Wed Aug 16 19:43:08 UTC 2023
Mode: agentvm
Agent id: 50
finished: Wed Aug 16 19:43:55 UTC 2023
elapsed time (seconds): 47.581
----------configuration:(12/1456)----------
<snip>
----------System.err:(12/533)----------
java.lang.Error: fair=false i=8 j=0
at Fairness.testFairness(Fairness.java:64)
at Fairness.main(Fairness.java:71)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1570)
JavaTest Message: Test threw exception: java.lang.Error
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.Error: fair=false i=8 j=0
This failure mode reminds me of:
JDK-8300663 java/util/concurrent/SynchronousQueue/Fairness.java failed with "Error: fair=true i=0 j=1"
which was fixed in jdk-22+8 on 2023.07.22.