内存和内存管理器的抽象
Java · 5 篇笔记
- 2.97 PooledByteBufAllocatorhistorical
PooledByteBufAllocator 先获取线程缓存和对应的 PoolArena,再通过 PoolArena 分配内存。笔记沿这两个阶段追踪实现。
- 2.98 PoolThreadCachehistorical
PoolThreadCache 为不同大小的内存区域创建缓存。笔记查看 tiny、small 和 normal 三类 MemoryRegionCache 的初始化。