1. 2.82 ByteBufhistorical

    ByteBuf 使用读指针和写指针划分已读、可读与可写区域。笔记从指针关系开始,整理读写接口的行为。

  2. 2.89 ByteBufAllocatorhistorical

    ByteBufAllocator 负责分配 ByteBuf。笔记沿抽象类的 buffer 方法,查看堆内存与直接内存等分配方式如何选择。

  3. 2.93 使用historical

    本文通过代码示例记录 Netty 的内存相关使用方式,作为继续阅读分配器实现的实践入口。

  4. 2.97 PooledByteBufAllocatorhistorical

    PooledByteBufAllocator 先获取线程缓存和对应的 PoolArena,再通过 PoolArena 分配内存。笔记沿这两个阶段追踪实现。

  5. 2.98 PoolThreadCachehistorical

    PoolThreadCache 为不同大小的内存区域创建缓存。笔记查看 tiny、small 和 normal 三类 MemoryRegionCache 的初始化。