From 9e5e846a6dbf46ea8ac20c3d38b7171b7037a3d3 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Sun, 20 Jan 2019 14:25:00 +1100 Subject: [PATCH] Fixes #575, disable resource leak detection in native image mode 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 | 2 +- 1 file changed, 1 insertion(+), 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 53b5c8973abc8..e9f3f0b8aa09f 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,7 @@ SubstrateConfigBuildItem build() { .addRuntimeInitializedClass("io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder") .addRuntimeInitializedClass("io.netty.handler.ssl.JdkNpnApplicationProtocolNegotiator") .addRuntimeInitializedClass("io.netty.handler.ssl.ReferenceCountedOpenSslEngine") - + .addNativeImageSystemProperty("io.netty.leakDetection.level", "DISABLED") //TODO: make configurable .build(); }