Skip to content

Commit efa807b

Browse files
committed
Omit the package name in the artificial stack frames
1 parent 9a7e69f commit efa807b

39 files changed

+71
-66
lines changed

kotlinx-coroutines-core/jvm/src/debug/ArtificialStackFrames.kt

+10-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import kotlinx.coroutines.*
88
/**
99
* A collection of artificial stack trace elements to be included in stack traces by the coroutines machinery.
1010
*/
11-
@InternalCoroutinesApi
1211
internal class ArtificialStackFrames {
1312
/**
14-
* Return an artificial stack trace element denoting the boundary between coroutine creation and its execution.
13+
* Returns an artificial stack trace element denoting the boundary between coroutine creation and its execution.
1514
*
1615
* Appearance of this function in stack traces does not mean that it was called. Instead, it is used as a marker
1716
* that separates the part of the stack trace with the code executed in a coroutine from the stack trace of the code
@@ -22,10 +21,10 @@ internal class ArtificialStackFrames {
2221
*
2322
* Note that presence of this marker in a stack trace implies that coroutine creation stack traces were enabled.
2423
*/
25-
fun coroutineCreation(): StackTraceElement = Exception().stackTrace[0]
24+
fun coroutineCreation(): StackTraceElement = Exception().artificialFrame()
2625

2726
/**
28-
* Return an artificial stack trace element denoting a coroutine boundary.
27+
* Returns an artificial stack trace element denoting a coroutine boundary.
2928
*
3029
* Appearance of this function in stack traces does not mean that it was called. Instead, when one coroutine invokes
3130
* another, this is used as a marker in the stack trace to denote where the execution of one coroutine ends and that
@@ -34,5 +33,10 @@ internal class ArtificialStackFrames {
3433
* In earlier versions of kotlinx-coroutines, this was displayed as "(Coroutine boundary)", which caused
3534
* problems for tooling that processes stack traces: https://github.com/Kotlin/kotlinx.coroutines/issues/2291
3635
*/
37-
fun coroutineBoundary(): StackTraceElement = Exception().stackTrace[0]
38-
}
36+
fun coroutineBoundary(): StackTraceElement = Exception().artificialFrame()
37+
}
38+
39+
internal val ARTIFICIAL_FRAME_CLASS_NAME = ArtificialStackFrames::class.java.simpleName
40+
41+
private fun Throwable.artificialFrame(): StackTraceElement =
42+
with(stackTrace[0]) { StackTraceElement(ARTIFICIAL_FRAME_CLASS_NAME, methodName, fileName, lineNumber) }

kotlinx-coroutines-core/jvm/src/internal/StackTraceRecovery.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
package kotlinx.coroutines.internal
88

99
import kotlinx.coroutines.*
10+
import kotlinx.coroutines.debug.ARTIFICIAL_FRAME_CLASS_NAME
1011
import kotlinx.coroutines.debug.ArtificialStackFrames
1112
import java.util.*
1213
import kotlin.coroutines.*
@@ -94,7 +95,7 @@ private fun <E : Throwable> recoverFromStackFrame(exception: E, continuation: Co
9495
* IllegalStateException
9596
* at foo
9697
* at kotlin.coroutines.resumeWith
97-
* at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
98+
* at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
9899
* at bar
99100
* ...real stackTrace...
100101
* caused by "IllegalStateException" (original one)
@@ -190,7 +191,7 @@ private fun createStackTrace(continuation: CoroutineStackFrame): ArrayDeque<Stac
190191
return stack
191192
}
192193

193-
internal fun StackTraceElement.isArtificial() = className == ArtificialStackFrames::class.qualifiedName
194+
internal fun StackTraceElement.isArtificial() = className == ARTIFICIAL_FRAME_CLASS_NAME
194195
private fun Array<StackTraceElement>.frameIndex(methodName: String) = indexOfFirst { methodName == it.className }
195196

196197
private fun StackTraceElement.elementWiseEquals(e: StackTraceElement): Boolean {

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testCancelledOffer.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kotlinx.coroutines.JobCancellationException: Job was cancelled; job=JobImpl{Cancelling}@2a06d350
2-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
2+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
33
at kotlinx.coroutines.channels.AbstractSendChannel.offer(AbstractChannel.kt:170)
44
at kotlinx.coroutines.channels.ChannelCoroutine.offer(ChannelCoroutine.kt)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testCancelledOffer$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:153)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testOfferFromScope.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testOfferFromScope$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:109)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.sendInChannel(StackTraceRecoveryChannelsTest.kt:167)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$sendWithContext$2.invokeSuspend(StackTraceRecoveryChannelsTest.kt:162)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$sendFromScope$2.invokeSuspend(StackTraceRecoveryChannelsTest.kt:172)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testOfferWithContextWrapped.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testOfferWithContextWrapped$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:98)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.sendInChannel(StackTraceRecoveryChannelsTest.kt:199)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$sendWithContext$2.invokeSuspend(StackTraceRecoveryChannelsTest.kt:194)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testOfferWithContextWrapped$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:100)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testOfferWithCurrentContext.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testOfferWithCurrentContext$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:86)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.sendInChannel(StackTraceRecoveryChannelsTest.kt:210)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$sendWithContext$2.invokeSuspend(StackTraceRecoveryChannelsTest.kt:205)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testOfferWithCurrentContext$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:89)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testReceiveFromChannel.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testReceiveFromChannel$1$job$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:97)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.channelReceive(StackTraceRecoveryChannelsTest.kt:116)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testReceiveFromChannel$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:101)
66
Caused by: kotlinx.coroutines.RecoverableTestException

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testReceiveFromClosedChannel.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testReceiveFromClosedChannel$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:110)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.channelReceive(StackTraceRecoveryChannelsTest.kt:116)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testReceiveFromClosedChannel$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:111)
66
Caused by: kotlinx.coroutines.RecoverableTestException

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testReceiveOrNullFromClosedChannel.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testReceiveOrNullFromClosedChannel$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:43)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.channelReceiveOrNull(StackTraceRecoveryChannelsTest.kt:70)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testReceiveOrNullFromClosedChannel$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:44)
66
Caused by: kotlinx.coroutines.RecoverableTestException

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testSendFromScope.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestCancellationException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testSendFromScope$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:136)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.sendInChannel(StackTraceRecoveryChannelsTest.kt:167)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$sendWithContext$2.invokeSuspend(StackTraceRecoveryChannelsTest.kt:162)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$sendFromScope$2.invokeSuspend(StackTraceRecoveryChannelsTest.kt:172)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testSendToChannel.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ java.util.concurrent.CancellationException: RendezvousChannel was cancelled
22
at kotlinx.coroutines.channels.AbstractChannel.cancel(AbstractChannel.kt:630)
33
at kotlinx.coroutines.channels.ReceiveChannel$DefaultImpls.cancel$default(Channel.kt:311)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testSendToChannel$1$job$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:52)
5-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
5+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.channelSend(StackTraceRecoveryChannelsTest.kt:73)
77
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testSendToChannel$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:56)
88
Caused by: java.util.concurrent.CancellationException: RendezvousChannel was cancelled

kotlinx-coroutines-core/jvm/test-resources/stacktraces/channels/testSendToClosedChannel.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testSendToClosedChannel$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:43)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest.channelSend(StackTraceRecoveryChannelsTest.kt:74)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryChannelsTest$testSendToClosedChannel$1.invokeSuspend(StackTraceRecoveryChannelsTest.kt:44)
66
Caused by: kotlinx.coroutines.RecoverableTestException

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testEventLoopDispatcher.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:61)
33
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testEventLoopDispatcher$1.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:40)
4-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
4+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:76)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doFastPath(StackTraceRecoveryResumeModeTest.kt:71)
77
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:62)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testEventLoopDispatcherSuspending.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
otlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testResumeModeSuspending$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:99)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$4.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:116)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doSuspendingPath(StackTraceRecoveryResumeModeTest.kt:110)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeSuspending(StackTraceRecoveryResumeModeTest.kt:101)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testNestedEventLoopChangedContext.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:61)
33
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testNestedEventLoopChangedContext$1$1.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:54)
4-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
4+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:76)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doFastPath(StackTraceRecoveryResumeModeTest.kt:71)
77
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:62)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testNestedEventLoopChangedContextSuspending.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testResumeModeSuspending$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:113)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$4.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:130)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doSuspendingPath(StackTraceRecoveryResumeModeTest.kt:124)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeSuspending(StackTraceRecoveryResumeModeTest.kt:115)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testNestedEventLoopDispatcher.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:61)
33
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testNestedEventLoopDispatcher$1$1.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:47)
4-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
4+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:76)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doFastPath(StackTraceRecoveryResumeModeTest.kt:71)
77
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:62)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testNestedEventLoopDispatcherSuspending.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testResumeModeSuspending$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:113)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$4.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:130)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doSuspendingPath(StackTraceRecoveryResumeModeTest.kt:124)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeSuspending(StackTraceRecoveryResumeModeTest.kt:115)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testNestedUnconfined.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:61)
33
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testNestedUnconfined$1$1.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:27)
4-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
4+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:76)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doFastPath(StackTraceRecoveryResumeModeTest.kt:71)
77
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:62)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testNestedUnconfinedChangedContext.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:61)
33
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testNestedUnconfinedChangedContext$1$1.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:34)
4-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
4+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:76)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doFastPath(StackTraceRecoveryResumeModeTest.kt:71)
77
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:62)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testNestedUnconfinedChangedContextSuspending.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testResumeModeSuspending$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:128)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$4.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:148)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doSuspendingPath(StackTraceRecoveryResumeModeTest.kt:140)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeSuspending(StackTraceRecoveryResumeModeTest.kt:130)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testNestedUnconfinedSuspending.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testResumeModeSuspending$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:128)
3-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
3+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
44
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$4.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:148)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doSuspendingPath(StackTraceRecoveryResumeModeTest.kt:140)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeSuspending(StackTraceRecoveryResumeModeTest.kt:130)

kotlinx-coroutines-core/jvm/test-resources/stacktraces/resume-mode/testUnconfined.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kotlinx.coroutines.RecoverableTestException
22
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:61)
33
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$testUnconfined$1.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:40)
4-
at kotlinx.coroutines.debug.ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
4+
at ArtificialStackFrames.coroutineBoundary(ArtificialStackFrames.kt)
55
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest$withContext$2.invokeSuspend(StackTraceRecoveryResumeModeTest.kt:76)
66
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.doFastPath(StackTraceRecoveryResumeModeTest.kt:71)
77
at kotlinx.coroutines.exceptions.StackTraceRecoveryResumeModeTest.testResumeModeFastPath(StackTraceRecoveryResumeModeTest.kt:62)

0 commit comments

Comments
 (0)