Skip to content

Commit 5a02996

Browse files
committed
~fix off-by-one
1 parent a2c1c31 commit 5a02996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/jvm/src/debug/internal/DebugProbesImpl.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ internal object DebugProbesImpl {
6969
private val callerInfoCache = ConcurrentWeakMap<CoroutineStackFrame, DebugCoroutineInfoImpl>(weakRefQueue = true)
7070

7171
fun install() {
72-
if (installations.incrementAndGet() > 1) return
72+
if (installations.getAndIncrement() > 1) return
7373
startWeakRefCleanerThread()
7474
if (AgentInstallationType.isInstalledStatically) return
7575
dynamicAttach?.invoke(true) // attach

0 commit comments

Comments
 (0)