mirror of https://github.com/grpc/grpc-java.git
This reverts commit b0e00fd4ba.
It may cause leak of netty native buffers when creating and shutting
down Channels on a regular basis.
This commit is contained in:
parent
5c239437a2
commit
c032e2ebf9
|
|
@ -91,7 +91,7 @@ class Utils {
|
|||
@Override
|
||||
public ByteBufAllocator create() {
|
||||
if (Boolean.parseBoolean(
|
||||
System.getProperty("io.grpc.netty.useCustomAllocator", "true"))) {
|
||||
System.getProperty("io.grpc.netty.useCustomAllocator", "false"))) {
|
||||
int maxOrder;
|
||||
if (System.getProperty("io.netty.allocator.maxOrder") == null) {
|
||||
// See the implementation of PooledByteBufAllocator. DEFAULT_MAX_ORDER in there is
|
||||
|
|
|
|||
Loading…
Reference in New Issue