Skip to content

Commit

Permalink
netty: enable io.grpc.netty.useCustomAllocator by default (take 2) (#…
Browse files Browse the repository at this point in the history
…6528)

Since #6526 has resolved the memory leak, let's turn it back on.
  • Loading branch information
zhangkun83 committed Dec 18, 2019
1 parent 1d35508 commit 212da14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netty/src/main/java/io/grpc/netty/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 212da14

Please sign in to comment.