Skip to content

Commit

Permalink
Fix BlockHound false positive in stack trace recovery (#2895)
Browse files Browse the repository at this point in the history
Fixes #2894
  • Loading branch information
qwwdfsad committed Sep 2, 2021
1 parent d3ead6f commit 6055432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -19,6 +19,8 @@ public class CoroutinesBlockHoundIntegration : BlockHoundIntegration {
allowServiceLoaderInvocationsOnInit()
allowBlockingCallsInReflectionImpl()
allowBlockingCallsInDebugProbes()
// Stacktrace recovery cache is guarded by lock
allowBlockingCallsInside("kotlinx.coroutines.internal.ExceptionsConstructorKt", "tryCopyException")
/* The predicates that define that BlockHound should only report blocking calls from threads that are part of
the coroutine thread pool and currently execute a CPU-bound coroutine computation. */
addDynamicThreadPredicate { isSchedulerWorker(it) }
Expand Down

0 comments on commit 6055432

Please sign in to comment.