Use correct value to disable/enable direct arenas in PooledByteBufAllocator
This commit is contained in:
parent
89f1f3f4d1
commit
bc20107b68
@ -142,7 +142,7 @@ public class PooledByteBufAllocator extends AbstractByteBufAllocator {
|
||||
heapArenas = null;
|
||||
}
|
||||
|
||||
if (nHeapArena > 0) {
|
||||
if (nDirectArena > 0) {
|
||||
directArenas = newArenaArray(nDirectArena);
|
||||
for (int i = 0; i < directArenas.length; i ++) {
|
||||
directArenas[i] = new PoolArena.DirectArena(this, pageSize, maxOrder, pageShifts, chunkSize);
|
||||
|
Loading…
Reference in New Issue
Block a user