From 7d664bdf8a17d588fa2363d7e1f056aa31f17570 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 4 Jul 2024 13:41:38 +0200 Subject: [PATCH] Enable io.netty.allocator.disableCacheFinalizersForFastThreadLocalThreads This is going to be useful once https://github.com/netty/netty/pull/14155 lands in Quarkus. --- .../java/io/quarkus/netty/deployment/NettyProcessor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java b/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java index c5469651ce15f..98a0d370ffcaf 100644 --- a/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java +++ b/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java @@ -79,6 +79,11 @@ public SystemPropertyBuildItem setNettyMachineId() { return new SystemPropertyBuildItem("io.netty.machineId", nettyMachineId); } + @BuildStep + public SystemPropertyBuildItem disableFinalizers() { + return new SystemPropertyBuildItem("io.netty.allocator.disableCacheFinalizersForFastThreadLocalThreads", "true"); + } + @BuildStep NativeImageConfigBuildItem build( NettyBuildTimeConfig config,