Class PoolArena<T>

    • Field Detail

      • HAS_UNSAFE

        private static final boolean HAS_UNSAFE
      • numSmallSubpagePools

        final int numSmallSubpagePools
      • directMemoryCacheAlignment

        final int directMemoryCacheAlignment
      • smallSubpagePools

        final PoolSubpage<T>[] smallSubpagePools
      • allocationsNormal

        private long allocationsNormal
      • allocationsSmall

        private final LongCounter allocationsSmall
      • allocationsHuge

        private final LongCounter allocationsHuge
      • activeBytesHuge

        private final LongCounter activeBytesHuge
      • deallocationsSmall

        private long deallocationsSmall
      • deallocationsNormal

        private long deallocationsNormal
      • deallocationsHuge

        private final LongCounter deallocationsHuge
      • numThreadCaches

        final java.util.concurrent.atomic.AtomicInteger numThreadCaches
      • lock

        private final java.util.concurrent.locks.ReentrantLock lock
    • Constructor Detail

      • PoolArena

        protected PoolArena​(PooledByteBufAllocator parent,
                            int pageSize,
                            int pageShifts,
                            int chunkSize,
                            int cacheAlignment)