netty: enable io.grpc.netty.useCustomAllocator by default (take 2) (#6528)

Since #6526 has resolved the memory leak, let's turn it back on.
This commit is contained in:
Kun Zhang 2019-12-18 08:33:29 -08:00 committed by GitHub
parent 1d35508000
commit 212da14200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class Utils {
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