From b0284e8f9a76cee66b1a9f35c51a4dbc5008db65 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Sun, 20 Jan 2019 14:25:00 +1100 Subject: [PATCH] Fixes #575, make the resource leak detector initialized at runtime Otherwise if a buffer was registered with the leak detector it is possible for the native image build to fail randomly --- .../src/main/java/org/jboss/shamrock/vertx/VertxProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/vertx/deployment/src/main/java/org/jboss/shamrock/vertx/VertxProcessor.java b/extensions/vertx/deployment/src/main/java/org/jboss/shamrock/vertx/VertxProcessor.java index 53b5c8973abc87..33d901d9415305 100644 --- a/extensions/vertx/deployment/src/main/java/org/jboss/shamrock/vertx/VertxProcessor.java +++ b/extensions/vertx/deployment/src/main/java/org/jboss/shamrock/vertx/VertxProcessor.java @@ -55,7 +55,8 @@ SubstrateConfigBuildItem build() { .addRuntimeInitializedClass("io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder") .addRuntimeInitializedClass("io.netty.handler.ssl.JdkNpnApplicationProtocolNegotiator") .addRuntimeInitializedClass("io.netty.handler.ssl.ReferenceCountedOpenSslEngine") - + .addRuntimeInitializedClass("io.netty.util.ResourceLeakDetector") + .addNativeImageSystemProperty("io.netty.leakDetection.level", "DISABLED") //TODO: make configurable .build(); }