Avoid double-wrapping allocator (#49534)
When using unpooled, the allocator is wrapped twice in a NoDirectBuffers.
This commit is contained in:
parent
09c4269097
commit
bd007271cf
|
@ -44,7 +44,7 @@ public class NettyAllocator {
|
|||
} else {
|
||||
ByteBufAllocator delegate;
|
||||
if (useUnpooled()) {
|
||||
delegate = new NoDirectBuffers(UnpooledByteBufAllocator.DEFAULT);
|
||||
delegate = UnpooledByteBufAllocator.DEFAULT;
|
||||
} else {
|
||||
int nHeapArena = PooledByteBufAllocator.defaultNumHeapArena();
|
||||
int pageSize = PooledByteBufAllocator.defaultPageSize();
|
||||
|
|
Loading…
Reference in New Issue