private void |
PoolArena.allocate(PoolArenasCache cache,
PooledByteBuf<T> buf,
int reqCapacity) |
|
(package private) boolean |
PoolChunk.allocate(PooledByteBuf<T> buf,
int reqCapacity,
int sizeIdx,
PoolArenasCache cache) |
|
(package private) boolean |
PoolChunkList.allocate(PooledByteBuf<T> buf,
int reqCapacity,
int sizeIdx,
PoolArenasCache threadCache) |
|
private boolean |
PoolThreadCache.allocate(PoolThreadCache.MemoryRegionCache<?> cache,
PooledByteBuf buf,
int reqCapacity) |
|
boolean |
PoolThreadCache.MemoryRegionCache.allocate(PooledByteBuf<T> buf,
int reqCapacity,
PoolThreadCache threadCache) |
Allocate something out of the cache if possible and remove the entry from the cache.
|
private void |
PoolArena.allocateHuge(PooledByteBuf<T> buf,
int reqCapacity) |
|
private void |
PoolArena.allocateNormal(PooledByteBuf<T> buf,
int reqCapacity,
int sizeIdx,
PoolArenasCache threadCache) |
|
(package private) boolean |
PoolArenasCache.allocateNormal(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int sizeIdx) |
|
(package private) boolean |
PoolThreadCache.allocateNormal(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int sizeIdx) |
Try to allocate a normal buffer out of the cache.
|
(package private) boolean |
PoolArenasCache.allocateSmall(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int sizeIdx) |
|
(package private) boolean |
PoolThreadCache.allocateSmall(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int sizeIdx) |
Try to allocate a small buffer out of the cache.
|
(package private) void |
PoolChunk.initBuf(PooledByteBuf<T> buf,
java.nio.ByteBuffer nioBuffer,
long handle,
int reqCapacity,
PoolArenasCache threadCache) |
|
protected abstract void |
PoolThreadCache.MemoryRegionCache.initBuf(PoolChunk<T> chunk,
java.nio.ByteBuffer nioBuffer,
long handle,
PooledByteBuf<T> buf,
int reqCapacity,
PoolThreadCache threadCache) |
Init the PooledByteBuf using the provided chunk and handle with the capacity restrictions.
|
protected void |
PoolThreadCache.NormalMemoryRegionCache.initBuf(PoolChunk<T> chunk,
java.nio.ByteBuffer nioBuffer,
long handle,
PooledByteBuf<T> buf,
int reqCapacity,
PoolThreadCache threadCache) |
|
protected void |
PoolThreadCache.SubPageMemoryRegionCache.initBuf(PoolChunk<T> chunk,
java.nio.ByteBuffer nioBuffer,
long handle,
PooledByteBuf<T> buf,
int reqCapacity,
PoolThreadCache threadCache) |
|
(package private) void |
PoolChunk.initBufWithSubpage(PooledByteBuf<T> buf,
java.nio.ByteBuffer nioBuffer,
long handle,
int reqCapacity,
PoolArenasCache threadCache) |
|
protected void |
PoolArena.DirectArena.memoryCopy(java.nio.ByteBuffer src,
int srcOffset,
PooledByteBuf<java.nio.ByteBuffer> dstBuf,
int length) |
|
protected void |
PoolArena.HeapArena.memoryCopy(byte[] src,
int srcOffset,
PooledByteBuf<byte[]> dst,
int length) |
|
protected abstract void |
PoolArena.memoryCopy(T src,
int srcOffset,
PooledByteBuf<T> dst,
int length) |
|
(package private) void |
PoolArena.reallocate(PooledByteBuf<T> buf,
int newCapacity,
boolean freeOldMemory) |
|
private void |
PoolArena.tcacheAllocateNormal(PoolArenasCache cache,
PooledByteBuf<T> buf,
int reqCapacity,
int sizeIdx) |
|
private void |
PoolArena.tcacheAllocateSmall(PoolArenasCache cache,
PooledByteBuf<T> buf,
int reqCapacity,
int sizeIdx) |
|