代码示例
public static void main(String[] args) { PooledByteBufAllocator allocator = PooledByteBufAllocator.DEFAULT; int chunkSize = 1 * 1024 * 1024; ByteBuf byteBuf = allocator.heapBuffer(chunkSize); int chunkSize2 = 9 * 1024; ByteBuf byteBuf2 = allocator.heapBuffer(chunkSize2); byteBuf.release(); byteBuf2.release(); ByteBuf byteBuf3 = allocator.heapBuffer(chunkSize2); byteBuf3.release(); }
Arena
PoolThreadCache