Add GlobalEventExecutor#addTask to BlockHound exceptions. (#10262)
Motivation: GlobalEventExecutor#addTask may be called during SingleThreadEventExecutor shutdown. May result in a blocking call, because GlobalEventExecutor#taskQueue is a BlockingQueue. Modifications: Add allowBlockingCallsInside configuration for GlobalEventExecutor#addTask. Result: Fixes #10257. When BlockHound is installed, GlobalEventExecutor#addTask is not reported as a blocking call.
This commit is contained in:
parent
79915347c6
commit
09d38c87df
@ -79,6 +79,10 @@ class Hidden {
|
||||
"io.netty.util.concurrent.GlobalEventExecutor",
|
||||
"takeTask");
|
||||
|
||||
builder.allowBlockingCallsInside(
|
||||
"io.netty.util.concurrent.GlobalEventExecutor",
|
||||
"addTask");
|
||||
|
||||
builder.allowBlockingCallsInside(
|
||||
"io.netty.util.concurrent.SingleThreadEventExecutor",
|
||||
"takeTask");
|
||||
|
Loading…
Reference in New Issue
Block a user