Skip to content

Commit

Permalink
Merge pull request #41686 from gsmet/netty-avoid-finalizers
Browse files Browse the repository at this point in the history
Enable io.netty.allocator.disableCacheFinalizersForFastThreadLocalThreads
  • Loading branch information
gsmet authored Jan 16, 2025
2 parents f55a6de + 7d664bd commit c0759c3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c0759c3

Please sign in to comment.