File tree 1 file changed +9
-0
lines changed
kotlinx-coroutines-debug/src
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public class CoroutinesBlockHoundIntegration : BlockHoundIntegration {
19
19
allowServiceLoaderInvocationsOnInit()
20
20
allowBlockingCallsInReflectionImpl()
21
21
allowBlockingCallsInDebugProbes()
22
+ allowBlockingCallsInWorkQueue()
22
23
// Stacktrace recovery cache is guarded by lock
23
24
allowBlockingCallsInside(" kotlinx.coroutines.internal.ExceptionsConstructorKt" , " tryCopyException" )
24
25
/* The predicates that define that BlockHound should only report blocking calls from threads that are part of
@@ -62,6 +63,14 @@ public class CoroutinesBlockHoundIntegration : BlockHoundIntegration {
62
63
}
63
64
}
64
65
66
+ /* *
67
+ * Allow blocking calls inside [kotlinx.coroutines.scheduling.WorkQueue]
68
+ */
69
+ private fun BlockHound.Builder.allowBlockingCallsInWorkQueue () {
70
+ /* * uses [Thread.yield] in a benign way. */
71
+ allowBlockingCallsInside(" kotlinx.coroutines.scheduling.WorkQueue" , " addLast" )
72
+ }
73
+
65
74
/* *
66
75
* Allows blocking inside [kotlinx.coroutines.internal.ThreadSafeHeap].
67
76
*/
You can’t perform that action at this time.
0 commit comments