netty 源码解读三 内存分配相关(1)-buddy 伙伴内存分配算法

1.前言: PooledByteBufAllocator 实现相当复杂,其中涉及许多复杂的数据结构类: 1)PoolArena 2)PoolChunk  3)PoolSubpage 5)PoolThreadCache 还有其他相关辅助类包括 PoolChunkList 其核心思想是利用了为 FreeBSD 设计的 jemalloc 内存分配算法和 buddy  分配算法。为了更好地解读 netty
相关文章
相关标签/搜索