Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ public InnerAllocator() {
}

private UnsafeDirectLittleEndian newDirectBufferL(int initialCapacity, int maxCapacity) {
PoolArenasCache cache = threadCache();
PoolArena<ByteBuffer> directArena = cache.directArena;
PoolArena<ByteBuffer> directArena = threadCache().directArena;

if (directArena != null) {

Expand All @@ -178,7 +177,7 @@ private UnsafeDirectLittleEndian newDirectBufferL(int initialCapacity, int maxCa
hugeBufferSize);
} else {
// within chunk, use arena.
ByteBuf buf = directArena.allocate(cache, initialCapacity, maxCapacity);
ByteBuf buf = directArena.allocate(threadCache(), initialCapacity, maxCapacity);
if (!(buf instanceof PooledUnsafeDirectByteBuf)) {
fail();
}
Expand Down