From de33ec7347e33df9c24413288895b613b38482f5 Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Mon, 16 Dec 2019 17:39:48 -0800 Subject: [PATCH] netty: enable io.grpc.netty.useCustomAllocator by default (take 2) Since #6526 has resolved the memory leak, let's turn it back on. --- netty/src/main/java/io/grpc/netty/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netty/src/main/java/io/grpc/netty/Utils.java b/netty/src/main/java/io/grpc/netty/Utils.java index c5df0cb15d5..2e9c5c512d8 100644 --- a/netty/src/main/java/io/grpc/netty/Utils.java +++ b/netty/src/main/java/io/grpc/netty/Utils.java @@ -92,7 +92,7 @@ private static final class ByteBufAllocatorHolder { static { if (Boolean.parseBoolean( - System.getProperty("io.grpc.netty.useCustomAllocator", "false"))) { + System.getProperty("io.grpc.netty.useCustomAllocator", "true"))) { int maxOrder; if (System.getProperty("io.netty.allocator.maxOrder") == null) { // See the implementation of PooledByteBufAllocator. DEFAULT_MAX_ORDER in there is