From bc20107b688db0107b1a859306d0b5036f646a3b Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 30 May 2013 20:24:11 +0200 Subject: [PATCH] Use correct value to disable/enable direct arenas in PooledByteBufAllocator --- .../src/main/java/io/netty/buffer/PooledByteBufAllocator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java b/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java index 9f614e8e3e..f6c78829f4 100644 --- a/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java +++ b/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java @@ -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);