You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running on OpenJDK 17 (and down to OpenJDK 14 according to my checks of corresponding sources), RunningThreadStackMergeTest fails on testStackMergeWithContext, testStackMergeEscapeSuspendMethod, and testMergeThroughInvokeSuspend. The reason is a change in OpenJDK's java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject. This change results in a stack dump that differs from expected one by three new frames:
Coroutine "coroutine#X":StandaloneCoroutine{Active}@ADDR, state: RUNNING at
[email protected]/jdk.internal.misc.Unsafe.park(Native Method)
at [email protected]/java.util.concurrent.locks.LockSupport.park(LockSupport.java:341)
+NEW+ at [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:506)
+NEW+ at [email protected]/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3463)
+NEW+ at [email protected]/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3434)
at [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1623)
at [email protected]/java.util.concurrent.CyclicBarrier.dowait(CyclicBarrier.java:236)
at [email protected]/java.util.concurrent.CyclicBarrier.await(CyclicBarrier.java:364)
(nb: line numbers most probably also differ, but that's not really that relevant)
The text was updated successfully, but these errors were encountered:
FenstonSingel
changed the title
Tests for kotlinx-coroutines-debug module fail on OpenJDK 17 due to change internals
Tests for kotlinx-coroutines-debug module fail on OpenJDK 17 due to changed internals
Apr 5, 2023
We do rely on java.util.concurrent primitives for rendezvous in tests,
but we cannot rely on their internal stacktraces in tests, thus filtering them out from test data.
Otherwise, tests outcome depends on the underlying JDK version
Fixes#3700
When running on OpenJDK 17 (and down to OpenJDK 14 according to my checks of corresponding sources),
RunningThreadStackMergeTest
fails ontestStackMergeWithContext
,testStackMergeEscapeSuspendMethod
, andtestMergeThroughInvokeSuspend
. The reason is a change in OpenJDK'sjava.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
. This change results in a stack dump that differs from expected one by three new frames:(nb: line numbers most probably also differ, but that's not really that relevant)
The text was updated successfully, but these errors were encountered: