Skip to content

Commit a9c6159

Browse files
committed
Do not cache callerFrame in DispatchedContinuation
1 parent e00d7d8 commit a9c6159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: kotlinx-coroutines-core/common/src/internal/DispatchedContinuation.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal class DispatchedContinuation<in T>(
2323
@JvmField
2424
@Suppress("PropertyName")
2525
internal var _state: Any? = UNDEFINED
26-
override val callerFrame: CoroutineStackFrame? = continuation as? CoroutineStackFrame
26+
override val callerFrame: CoroutineStackFrame? get() = continuation as? CoroutineStackFrame
2727
override fun getStackTraceElement(): StackTraceElement? = null
2828
@JvmField // pre-cached value to avoid ctx.fold on every resumption
2929
internal val countOrElement = threadContextElements(context)

0 commit comments

Comments
 (0)