内存管理-PooledByteBufAllocator-Chunk
作者:互联网
代码示例
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
标签:1024,PooledByteBufAllocator,Chunk,内存,ByteBuf,release,heapBuffer,allocator 来源: https://www.cnblogs.com/imengdong/p/14759619.html