Skip to content

Commit 202b5bb

Browse files
qwwdfsadpablobaxter
authored andcommitted
Fix BlockHound false positive in stack trace recovery (Kotlin#2895)
Fixes Kotlin#2894
1 parent 4c83028 commit 202b5bb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

kotlinx-coroutines-debug/src/CoroutinesBlockHoundIntegration.kt

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public class CoroutinesBlockHoundIntegration : BlockHoundIntegration {
1919
allowServiceLoaderInvocationsOnInit()
2020
allowBlockingCallsInReflectionImpl()
2121
allowBlockingCallsInDebugProbes()
22+
// Stacktrace recovery cache is guarded by lock
23+
allowBlockingCallsInside("kotlinx.coroutines.internal.ExceptionsConstructorKt", "tryCopyException")
2224
/* The predicates that define that BlockHound should only report blocking calls from threads that are part of
2325
the coroutine thread pool and currently execute a CPU-bound coroutine computation. */
2426
addDynamicThreadPredicate { isSchedulerWorker(it) }

0 commit comments

Comments
 (0)