@Test public void testArenaMetricsCacheAlign() { Assume.assumeTrue(PooledByteBufAllocator.isDirectMemoryCacheAlignmentSupported()); testArenaMetrics0(new PooledByteBufAllocator(true, 2, 2, 8192, 11, 1000, 1000, 1000, true, 64), 100, 1, 1, 0); }
public static boolean isDirectMemoryCacheAlignmentSupported() { return PlatformDependent.hasUnsafe(); }
PooledByteBufAllocator extends AbstractByteBufAllocator implements ByteBufAllocatorMetricProvider { public static boolean isDirectMemoryCacheAlignmentSupported() { return PlatformDependent.hasUnsafe(); } }
PooledByteBufAllocator extends AbstractByteBufAllocator implements ByteBufAllocatorMetricProvider { public static boolean isDirectMemoryCacheAlignmentSupported() { return PlatformDependent.hasUnsafe(); } PooledByteBufAllocator(); @SuppressWarnings("deprecation")  PooledByteBufAllocator(boolean preferDirect); @SuppressWarnings("deprecation")  PooledByteBufAllocator(int nHeapArena, int nDirectArena, int pageSize, int maxOrder); @Deprecated  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder); @Deprecated  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder,
                                  int tinyCacheSize, int smallCacheSize, int normalCacheSize);  PooledByteBufAllocator(boolean preferDirect, int nHeapArena,
                                  int nDirectArena, int pageSize, int maxOrder, int tinyCacheSize,
                                  int smallCacheSize, int normalCacheSize,
                                  boolean useCacheForAllThreads);  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder,
                                  int tinyCacheSize, int smallCacheSize, int normalCacheSize,
                                  boolean useCacheForAllThreads, int directMemoryCacheAlignment); }
PooledByteBufAllocator extends AbstractByteBufAllocator implements ByteBufAllocatorMetricProvider { public static boolean isDirectMemoryCacheAlignmentSupported() { return PlatformDependent.hasUnsafe(); } PooledByteBufAllocator(); @SuppressWarnings("deprecation")  PooledByteBufAllocator(boolean preferDirect); @SuppressWarnings("deprecation")  PooledByteBufAllocator(int nHeapArena, int nDirectArena, int pageSize, int maxOrder); @Deprecated  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder); @Deprecated  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder,
                                  int tinyCacheSize, int smallCacheSize, int normalCacheSize);  PooledByteBufAllocator(boolean preferDirect, int nHeapArena,
                                  int nDirectArena, int pageSize, int maxOrder, int tinyCacheSize,
                                  int smallCacheSize, int normalCacheSize,
                                  boolean useCacheForAllThreads);  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder,
                                  int tinyCacheSize, int smallCacheSize, int normalCacheSize,
                                  boolean useCacheForAllThreads, int directMemoryCacheAlignment); static int defaultNumHeapArena(); static int defaultNumDirectArena(); static int defaultPageSize(); static int defaultMaxOrder(); static boolean defaultUseCacheForAllThreads(); static boolean defaultPreferDirect(); static int defaultTinyCacheSize(); static int defaultSmallCacheSize(); static int defaultNormalCacheSize(); static boolean isDirectMemoryCacheAlignmentSupported(); @Override boolean isDirectBufferPooled(); @Deprecated boolean hasThreadLocalCache(); @Deprecated void freeThreadLocalCache(); @Override PooledByteBufAllocatorMetric metric(); @Deprecated int numHeapArenas(); @Deprecated int numDirectArenas(); @Deprecated List<PoolArenaMetric> heapArenas(); @Deprecated List<PoolArenaMetric> directArenas(); @Deprecated int numThreadLocalCaches(); @Deprecated int tinyCacheSize(); @Deprecated int smallCacheSize(); @Deprecated int normalCacheSize(); @Deprecated final int chunkSize(); String dumpStats(); }
PooledByteBufAllocator extends AbstractByteBufAllocator implements ByteBufAllocatorMetricProvider { public static boolean isDirectMemoryCacheAlignmentSupported() { return PlatformDependent.hasUnsafe(); } PooledByteBufAllocator(); @SuppressWarnings("deprecation")  PooledByteBufAllocator(boolean preferDirect); @SuppressWarnings("deprecation")  PooledByteBufAllocator(int nHeapArena, int nDirectArena, int pageSize, int maxOrder); @Deprecated  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder); @Deprecated  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder,
                                  int tinyCacheSize, int smallCacheSize, int normalCacheSize);  PooledByteBufAllocator(boolean preferDirect, int nHeapArena,
                                  int nDirectArena, int pageSize, int maxOrder, int tinyCacheSize,
                                  int smallCacheSize, int normalCacheSize,
                                  boolean useCacheForAllThreads);  PooledByteBufAllocator(boolean preferDirect, int nHeapArena, int nDirectArena, int pageSize, int maxOrder,
                                  int tinyCacheSize, int smallCacheSize, int normalCacheSize,
                                  boolean useCacheForAllThreads, int directMemoryCacheAlignment); static int defaultNumHeapArena(); static int defaultNumDirectArena(); static int defaultPageSize(); static int defaultMaxOrder(); static boolean defaultUseCacheForAllThreads(); static boolean defaultPreferDirect(); static int defaultTinyCacheSize(); static int defaultSmallCacheSize(); static int defaultNormalCacheSize(); static boolean isDirectMemoryCacheAlignmentSupported(); @Override boolean isDirectBufferPooled(); @Deprecated boolean hasThreadLocalCache(); @Deprecated void freeThreadLocalCache(); @Override PooledByteBufAllocatorMetric metric(); @Deprecated int numHeapArenas(); @Deprecated int numDirectArenas(); @Deprecated List<PoolArenaMetric> heapArenas(); @Deprecated List<PoolArenaMetric> directArenas(); @Deprecated int numThreadLocalCaches(); @Deprecated int tinyCacheSize(); @Deprecated int smallCacheSize(); @Deprecated int normalCacheSize(); @Deprecated final int chunkSize(); String dumpStats(); static final PooledByteBufAllocator DEFAULT; }