Skip to content

Commit

Permalink
Fixes #575, make the resource leak detector initialized at runtime
Browse files Browse the repository at this point in the history
Otherwise if a buffer was registered with the leak detector it is possible
for the native image build to fail randomly
  • Loading branch information
stuartwdouglas committed Jan 20, 2019
1 parent 8a381d1 commit b0284e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b0284e8

Please sign in to comment.