Netty源码之PooledByteBufAllocator

在这个类中我们主要从下面这个方法开始看: protected ByteBuf newDirectBuffer(int initialCapacity, int maxCapacity) { //从当前线程中拿到一个cache对象 PoolThreadCache cache = threadCache.get(); //从cache中获得内存管理的顶层“竞技场”
相关文章
相关标签/搜索