Backports more blocking fixes

This commit is contained in:
Spencer Gibb
2019-12-11 15:05:50 -05:00
parent 27d97d5940
commit 661717fe54

View File

@@ -25,6 +25,12 @@ public class CustomBlockHoundIntegration implements BlockHoundIntegration {
@Override
public void applyTo(BlockHound.Builder builder) {
/*builder.blockingMethodCallback(it -> {
Error error = new Error(it.toString());
error.printStackTrace();
throw error;
});*/
// Uses
// ch.qos.logback.classic.spi.PackagingDataCalculator#getImplementationVersion
builder.allowBlockingCallsInside(
@@ -62,6 +68,8 @@ public class CustomBlockHoundIntegration implements BlockHoundIntegration {
// Uses Unsafe#park
builder.allowBlockingCallsInside("io.netty.util.concurrent.GlobalEventExecutor",
"execute");
builder.allowBlockingCallsInside(
"io.netty.util.concurrent.SingleThreadEventExecutor$6", "run");
// SECURITY RELATED