public class io.netty.buffer.PooledByteBufAllocator extends io.netty.buffer.AbstractByteBufAllocator implements io.netty.buffer.ByteBufAllocatorMetricProvider
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.buffer.PooledByteBufAllocator
super_class: io.netty.buffer.AbstractByteBufAllocator
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_NUM_HEAP_ARENA;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_NUM_DIRECT_ARENA;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_PAGE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_MAX_ORDER;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_TINY_CACHE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_SMALL_CACHE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_NORMAL_CACHE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_MAX_CACHED_BUFFER_CAPACITY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_CACHE_TRIM_INTERVAL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean DEFAULT_USE_CACHE_FOR_ALL_THREADS;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_DIRECT_MEMORY_CACHE_ALIGNMENT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int MIN_PAGE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4096
private static final int MAX_CHUNK_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1073741824
public static final io.netty.buffer.PooledByteBufAllocator DEFAULT;
descriptor: Lio/netty/buffer/PooledByteBufAllocator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final io.netty.buffer.PoolArena<byte[]> heapArenas;
descriptor: [Lio/netty/buffer/PoolArena;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: [Lio/netty/buffer/PoolArena<[B>;
private final io.netty.buffer.PoolArena<java.nio.ByteBuffer>[] directArenas;
descriptor: [Lio/netty/buffer/PoolArena;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: [Lio/netty/buffer/PoolArena<Ljava/nio/ByteBuffer;>;
private final int tinyCacheSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int smallCacheSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int normalCacheSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<io.netty.buffer.PoolArenaMetric> heapArenaMetrics;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lio/netty/buffer/PoolArenaMetric;>;
private final java.util.List<io.netty.buffer.PoolArenaMetric> directArenaMetrics;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lio/netty/buffer/PoolArenaMetric;>;
private final io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache threadCache;
descriptor: Lio/netty/buffer/PooledByteBufAllocator$PoolThreadLocalCache;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int chunkSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.buffer.PooledByteBufAllocatorMetric metric;
descriptor: Lio/netty/buffer/PooledByteBufAllocatorMetric;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=7, args_size=0
0: ldc Lio/netty/buffer/PooledByteBufAllocator;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic io.netty.buffer.PooledByteBufAllocator.$assertionsDisabled:Z
3: ldc Lio/netty/buffer/PooledByteBufAllocator;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
4: ldc "io.netty.allocator.pageSize"
sipush 8192
invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
istore 0
start local 0 5: aconst_null
astore 1
start local 1 6: iload 0
invokestatic io.netty.buffer.PooledByteBufAllocator.validateAndCalculatePageShifts:(I)I
pop
7: goto 11
StackMap locals: int java.lang.Throwable
StackMap stack: java.lang.Throwable
8: astore 2
start local 2 9: aload 2
astore 1
10: sipush 8192
istore 0
end local 2 11: StackMap locals:
StackMap stack:
iload 0
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_PAGE_SIZE:I
12: ldc "io.netty.allocator.maxOrder"
bipush 11
invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
istore 2
start local 2 13: aconst_null
astore 3
start local 3 14: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_PAGE_SIZE:I
iload 2
invokestatic io.netty.buffer.PooledByteBufAllocator.validateAndCalculateChunkSize:(II)I
pop
15: goto 19
StackMap locals: int java.lang.Throwable int java.lang.Throwable
StackMap stack: java.lang.Throwable
16: astore 4
start local 4 17: aload 4
astore 3
18: bipush 11
istore 2
end local 4 19: StackMap locals:
StackMap stack:
iload 2
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_ORDER:I
20: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
astore 4
start local 4 21: invokestatic io.netty.util.NettyRuntime.availableProcessors:()I
iconst_2
imul
istore 5
start local 5 22: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_PAGE_SIZE:I
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_ORDER:I
ishl
istore 6
start local 6 23: iconst_0
24: ldc "io.netty.allocator.numHeapArenas"
25: iload 5
i2l
26: aload 4
invokevirtual java.lang.Runtime.maxMemory:()J
iload 6
i2l
ldiv
ldc 2
ldiv
ldc 3
ldiv
27: invokestatic java.lang.Math.min:(JJ)J
l2i
28: invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
29: invokestatic java.lang.Math.max:(II)I
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NUM_HEAP_ARENA:I
30: iconst_0
31: ldc "io.netty.allocator.numDirectArenas"
32: iload 5
i2l
33: invokestatic io.netty.util.internal.PlatformDependent.maxDirectMemory:()J
iload 6
i2l
ldiv
ldc 2
ldiv
ldc 3
ldiv
34: invokestatic java.lang.Math.min:(JJ)J
l2i
35: invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
36: invokestatic java.lang.Math.max:(II)I
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NUM_DIRECT_ARENA:I
37: ldc "io.netty.allocator.tinyCacheSize"
sipush 512
invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_TINY_CACHE_SIZE:I
38: ldc "io.netty.allocator.smallCacheSize"
sipush 256
invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_SMALL_CACHE_SIZE:I
39: ldc "io.netty.allocator.normalCacheSize"
bipush 64
invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NORMAL_CACHE_SIZE:I
40: ldc "io.netty.allocator.maxCachedBufferCapacity"
ldc 32768
41: invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_CACHED_BUFFER_CAPACITY:I
42: ldc "io.netty.allocator.cacheTrimInterval"
sipush 8192
43: invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_CACHE_TRIM_INTERVAL:I
44: ldc "io.netty.allocator.useCacheForAllThreads"
iconst_1
45: invokestatic io.netty.util.internal.SystemPropertyUtil.getBoolean:(Ljava/lang/String;Z)Z
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_USE_CACHE_FOR_ALL_THREADS:Z
46: ldc "io.netty.allocator.directMemoryCacheAlignment"
iconst_0
47: invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_DIRECT_MEMORY_CACHE_ALIGNMENT:I
48: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isDebugEnabled:()Z
ifeq 66
49: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.numHeapArenas: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NUM_HEAP_ARENA:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
50: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.numDirectArenas: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NUM_DIRECT_ARENA:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
51: aload 1
ifnonnull 54
52: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.pageSize: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_PAGE_SIZE:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
53: goto 55
54: StackMap locals: java.lang.Runtime int int
StackMap stack:
getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.pageSize: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_PAGE_SIZE:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 1
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
55: StackMap locals:
StackMap stack:
aload 3
ifnonnull 58
56: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.maxOrder: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_ORDER:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
57: goto 59
58: StackMap locals:
StackMap stack:
getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.maxOrder: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_ORDER:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
59: StackMap locals:
StackMap stack:
getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.chunkSize: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_PAGE_SIZE:I
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_ORDER:I
ishl
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
60: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.tinyCacheSize: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_TINY_CACHE_SIZE:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
61: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.smallCacheSize: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_SMALL_CACHE_SIZE:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
62: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.normalCacheSize: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NORMAL_CACHE_SIZE:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
63: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.maxCachedBufferCapacity: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_CACHED_BUFFER_CAPACITY:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
64: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.cacheTrimInterval: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_CACHE_TRIM_INTERVAL:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
65: getstatic io.netty.buffer.PooledByteBufAllocator.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.useCacheForAllThreads: {}"
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_USE_CACHE_FOR_ALL_THREADS:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 66: StackMap locals:
StackMap stack:
new io.netty.buffer.PooledByteBufAllocator
dup
invokestatic io.netty.util.internal.PlatformDependent.directBufferPreferred:()Z
invokespecial io.netty.buffer.PooledByteBufAllocator.<init>:(Z)V
67: putstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT:Lio/netty/buffer/PooledByteBufAllocator;
68: return
LocalVariableTable:
Start End Slot Name Signature
5 66 0 defaultPageSize I
6 66 1 pageSizeFallbackCause Ljava/lang/Throwable;
9 11 2 t Ljava/lang/Throwable;
13 66 2 defaultMaxOrder I
14 66 3 maxOrderFallbackCause Ljava/lang/Throwable;
17 19 4 t Ljava/lang/Throwable;
21 66 4 runtime Ljava/lang/Runtime;
22 66 5 defaultMinNumArena I
23 66 6 defaultChunkSize I
Exception table:
from to target type
6 7 8 Class java.lang.Throwable
14 15 16 Class java.lang.Throwable
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokespecial io.netty.buffer.PooledByteBufAllocator.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/buffer/PooledByteBufAllocator;
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NUM_HEAP_ARENA:I
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NUM_DIRECT_ARENA:I
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_PAGE_SIZE:I
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_ORDER:I
invokespecial io.netty.buffer.PooledByteBufAllocator.<init>:(ZIIII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/buffer/PooledByteBufAllocator;
0 2 1 preferDirect Z
MethodParameters:
Name Flags
preferDirect
public void <init>(int, int, int, int);
descriptor: (IIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iconst_0
iload 1
iload 2
iload 3
iload 4
invokespecial io.netty.buffer.PooledByteBufAllocator.<init>:(ZIIII)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/buffer/PooledByteBufAllocator;
0 2 1 nHeapArena I
0 2 2 nDirectArena I
0 2 3 pageSize I
0 2 4 maxOrder I
MethodParameters:
Name Flags
nHeapArena
nDirectArena
pageSize
maxOrder
public void <init>(boolean, int, int, int, int);
descriptor: (ZIIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
iload 1
iload 2
iload 3
iload 4
iload 5
1: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_TINY_CACHE_SIZE:I
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_SMALL_CACHE_SIZE:I
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NORMAL_CACHE_SIZE:I
invokespecial io.netty.buffer.PooledByteBufAllocator.<init>:(ZIIIIIII)V
2: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/buffer/PooledByteBufAllocator;
0 3 1 preferDirect Z
0 3 2 nHeapArena I
0 3 3 nDirectArena I
0 3 4 pageSize I
0 3 5 maxOrder I
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
preferDirect
nHeapArena
nDirectArena
pageSize
maxOrder
public void <init>(boolean, int, int, int, int, int, int, int);
descriptor: (ZIIIIIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=9, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: aload 0
iload 1
iload 2
iload 3
iload 4
iload 5
iload 6
iload 7
1: iload 8
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_USE_CACHE_FOR_ALL_THREADS:Z
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_DIRECT_MEMORY_CACHE_ALIGNMENT:I
invokespecial io.netty.buffer.PooledByteBufAllocator.<init>:(ZIIIIIIIZI)V
2: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/buffer/PooledByteBufAllocator;
0 3 1 preferDirect Z
0 3 2 nHeapArena I
0 3 3 nDirectArena I
0 3 4 pageSize I
0 3 5 maxOrder I
0 3 6 tinyCacheSize I
0 3 7 smallCacheSize I
0 3 8 normalCacheSize I
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
preferDirect
nHeapArena
nDirectArena
pageSize
maxOrder
tinyCacheSize
smallCacheSize
normalCacheSize
public void <init>(boolean, int, int, int, int, int, int, int, boolean);
descriptor: (ZIIIIIIIZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=10, args_size=10
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 start local 9 0: aload 0
iload 1
iload 2
iload 3
iload 4
iload 5
1: iload 6
iload 7
iload 8
2: iload 9
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_DIRECT_MEMORY_CACHE_ALIGNMENT:I
invokespecial io.netty.buffer.PooledByteBufAllocator.<init>:(ZIIIIIIIZI)V
3: return
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/buffer/PooledByteBufAllocator;
0 4 1 preferDirect Z
0 4 2 nHeapArena I
0 4 3 nDirectArena I
0 4 4 pageSize I
0 4 5 maxOrder I
0 4 6 tinyCacheSize I
0 4 7 smallCacheSize I
0 4 8 normalCacheSize I
0 4 9 useCacheForAllThreads Z
MethodParameters:
Name Flags
preferDirect
nHeapArena
nDirectArena
pageSize
maxOrder
tinyCacheSize
smallCacheSize
normalCacheSize
useCacheForAllThreads
public void <init>(boolean, int, int, int, int, int, int, int, boolean, int);
descriptor: (ZIIIIIIIZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=15, args_size=11
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 start local 9 start local 10 0: aload 0
iload 1
invokespecial io.netty.buffer.AbstractByteBufAllocator.<init>:(Z)V
1: aload 0
new io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache
dup
aload 0
iload 9
invokespecial io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.<init>:(Lio/netty/buffer/PooledByteBufAllocator;Z)V
putfield io.netty.buffer.PooledByteBufAllocator.threadCache:Lio/netty/buffer/PooledByteBufAllocator$PoolThreadLocalCache;
2: aload 0
iload 6
putfield io.netty.buffer.PooledByteBufAllocator.tinyCacheSize:I
3: aload 0
iload 7
putfield io.netty.buffer.PooledByteBufAllocator.smallCacheSize:I
4: aload 0
iload 8
putfield io.netty.buffer.PooledByteBufAllocator.normalCacheSize:I
5: aload 0
iload 4
iload 5
invokestatic io.netty.buffer.PooledByteBufAllocator.validateAndCalculateChunkSize:(II)I
putfield io.netty.buffer.PooledByteBufAllocator.chunkSize:I
6: iload 2
ifge 8
7: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "nHeapArena: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: >= 0)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: io.netty.buffer.PooledByteBufAllocator int int int int int int int int int int
StackMap stack:
iload 3
ifge 10
9: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "nDirectArea: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: >= 0)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
iload 10
ifge 14
11: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "directMemoryCacheAlignment: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
12: iload 10
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: >= 0)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
iload 10
ifle 16
invokestatic io.netty.buffer.PooledByteBufAllocator.isDirectMemoryCacheAlignmentSupported:()Z
ifne 16
15: new java.lang.IllegalArgumentException
dup
ldc "directMemoryCacheAlignment is not supported"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
iload 10
iload 10
ineg
iand
iload 10
if_icmpeq 20
17: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "directMemoryCacheAlignment: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
18: iload 10
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: power of two)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
iload 4
invokestatic io.netty.buffer.PooledByteBufAllocator.validateAndCalculatePageShifts:(I)I
istore 11
start local 11 21: iload 2
ifle 36
22: aload 0
iload 2
invokestatic io.netty.buffer.PooledByteBufAllocator.newArenaArray:(I)[Lio/netty/buffer/PoolArena;
putfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
23: new java.util.ArrayList
dup
aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 12
start local 12 24: iconst_0
istore 13
start local 13 25: goto 33
26: StackMap locals: int java.util.List int
StackMap stack:
new io.netty.buffer.PoolArena$HeapArena
dup
aload 0
27: iload 4
iload 5
iload 11
aload 0
getfield io.netty.buffer.PooledByteBufAllocator.chunkSize:I
28: iload 10
29: invokespecial io.netty.buffer.PoolArena$HeapArena.<init>:(Lio/netty/buffer/PooledByteBufAllocator;IIIII)V
astore 14
start local 14 30: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
iload 13
aload 14
aastore
31: aload 12
aload 14
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 14 32: iinc 13 1
StackMap locals:
StackMap stack:
33: iload 13
aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
arraylength
if_icmplt 26
end local 13 34: aload 0
aload 12
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield io.netty.buffer.PooledByteBufAllocator.heapArenaMetrics:Ljava/util/List;
end local 12 35: goto 38
36: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
37: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield io.netty.buffer.PooledByteBufAllocator.heapArenaMetrics:Ljava/util/List;
38: StackMap locals:
StackMap stack:
iload 3
ifle 52
39: aload 0
iload 3
invokestatic io.netty.buffer.PooledByteBufAllocator.newArenaArray:(I)[Lio/netty/buffer/PoolArena;
putfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
40: new java.util.ArrayList
dup
aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 12
start local 12 41: iconst_0
istore 13
start local 13 42: goto 49
43: StackMap locals: java.util.List int
StackMap stack:
new io.netty.buffer.PoolArena$DirectArena
dup
44: aload 0
iload 4
iload 5
iload 11
aload 0
getfield io.netty.buffer.PooledByteBufAllocator.chunkSize:I
iload 10
45: invokespecial io.netty.buffer.PoolArena$DirectArena.<init>:(Lio/netty/buffer/PooledByteBufAllocator;IIIII)V
astore 14
start local 14 46: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
iload 13
aload 14
aastore
47: aload 12
aload 14
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 14 48: iinc 13 1
StackMap locals:
StackMap stack:
49: iload 13
aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
arraylength
if_icmplt 43
end local 13 50: aload 0
aload 12
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield io.netty.buffer.PooledByteBufAllocator.directArenaMetrics:Ljava/util/List;
end local 12 51: goto 54
52: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
53: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield io.netty.buffer.PooledByteBufAllocator.directArenaMetrics:Ljava/util/List;
54: StackMap locals:
StackMap stack:
aload 0
new io.netty.buffer.PooledByteBufAllocatorMetric
dup
aload 0
invokespecial io.netty.buffer.PooledByteBufAllocatorMetric.<init>:(Lio/netty/buffer/PooledByteBufAllocator;)V
putfield io.netty.buffer.PooledByteBufAllocator.metric:Lio/netty/buffer/PooledByteBufAllocatorMetric;
55: return
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 56 0 this Lio/netty/buffer/PooledByteBufAllocator;
0 56 1 preferDirect Z
0 56 2 nHeapArena I
0 56 3 nDirectArena I
0 56 4 pageSize I
0 56 5 maxOrder I
0 56 6 tinyCacheSize I
0 56 7 smallCacheSize I
0 56 8 normalCacheSize I
0 56 9 useCacheForAllThreads Z
0 56 10 directMemoryCacheAlignment I
21 56 11 pageShifts I
24 35 12 metrics Ljava/util/List<Lio/netty/buffer/PoolArenaMetric;>;
25 34 13 i I
30 32 14 arena Lio/netty/buffer/PoolArena$HeapArena;
41 51 12 metrics Ljava/util/List<Lio/netty/buffer/PoolArenaMetric;>;
42 50 13 i I
46 48 14 arena Lio/netty/buffer/PoolArena$DirectArena;
MethodParameters:
Name Flags
preferDirect
nHeapArena
nDirectArena
pageSize
maxOrder
tinyCacheSize
smallCacheSize
normalCacheSize
useCacheForAllThreads
directMemoryCacheAlignment
private static <T> io.netty.buffer.PoolArena<T>[] newArenaArray(int);
descriptor: (I)[Lio/netty/buffer/PoolArena;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
anewarray io.netty.buffer.PoolArena
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 size I
Signature: <T:Ljava/lang/Object;>(I)[Lio/netty/buffer/PoolArena<TT;>;
MethodParameters:
Name Flags
size
private static int validateAndCalculatePageShifts(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iload 0
sipush 4096
if_icmpge 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "pageSize: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
sipush 4096
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 0
iload 0
iconst_1
isub
iand
ifeq 4
3: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "pageSize: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: power of 2)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
bipush 31
iload 0
invokestatic java.lang.Integer.numberOfLeadingZeros:(I)I
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 pageSize I
MethodParameters:
Name Flags
pageSize
private static int validateAndCalculateChunkSize(int, int);
descriptor: (II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: iload 1
bipush 14
if_icmple 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "maxOrder: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 0-14)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 0
istore 2
start local 2 3: iload 1
istore 3
start local 3 4: goto 11
5: StackMap locals: int int
StackMap stack:
iload 2
ldc 536870912
if_icmple 9
6: new java.lang.IllegalArgumentException
dup
7: ldc "pageSize (%d) << maxOrder (%d) must not exceed %d"
iconst_3
anewarray java.lang.Object
dup
iconst_0
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
ldc 1073741824
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
8: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
iload 2
iconst_1
ishl
istore 2
10: iinc 3 -1
StackMap locals:
StackMap stack:
11: iload 3
ifgt 5
end local 3 12: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 pageSize I
0 13 1 maxOrder I
3 13 2 chunkSize I
4 12 3 i I
MethodParameters:
Name Flags
pageSize
maxOrder
protected io.netty.buffer.ByteBuf newHeapBuffer(int, int);
descriptor: (II)Lio/netty/buffer/ByteBuf;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.threadCache:Lio/netty/buffer/PooledByteBufAllocator$PoolThreadLocalCache;
invokevirtual io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.get:()Ljava/lang/Object;
checkcast io.netty.buffer.PoolThreadCache
astore 3
start local 3 1: aload 3
getfield io.netty.buffer.PoolThreadCache.heapArena:Lio/netty/buffer/PoolArena;
astore 4
start local 4 2: aload 4
ifnull 5
3: aload 4
aload 3
iload 1
iload 2
invokevirtual io.netty.buffer.PoolArena.allocate:(Lio/netty/buffer/PoolThreadCache;II)Lio/netty/buffer/PooledByteBuf;
astore 5
start local 5 4: goto 9
end local 5 5: StackMap locals: io.netty.buffer.PoolThreadCache io.netty.buffer.PoolArena
StackMap stack:
invokestatic io.netty.util.internal.PlatformDependent.hasUnsafe:()Z
ifeq 7
6: new io.netty.buffer.UnpooledUnsafeHeapByteBuf
dup
aload 0
iload 1
iload 2
invokespecial io.netty.buffer.UnpooledUnsafeHeapByteBuf.<init>:(Lio/netty/buffer/ByteBufAllocator;II)V
goto 8
7: StackMap locals:
StackMap stack:
new io.netty.buffer.UnpooledHeapByteBuf
dup
aload 0
iload 1
iload 2
invokespecial io.netty.buffer.UnpooledHeapByteBuf.<init>:(Lio/netty/buffer/ByteBufAllocator;II)V
8: StackMap locals:
StackMap stack: io.netty.buffer.UnpooledHeapByteBuf
astore 5
start local 5 9: StackMap locals: io.netty.buffer.ByteBuf
StackMap stack:
aload 5
invokestatic io.netty.buffer.PooledByteBufAllocator.toLeakAwareBuffer:(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/netty/buffer/PooledByteBufAllocator;
0 10 1 initialCapacity I
0 10 2 maxCapacity I
1 10 3 cache Lio/netty/buffer/PoolThreadCache;
2 10 4 heapArena Lio/netty/buffer/PoolArena<[B>;
4 5 5 buf Lio/netty/buffer/ByteBuf;
9 10 5 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
initialCapacity
maxCapacity
protected io.netty.buffer.ByteBuf newDirectBuffer(int, int);
descriptor: (II)Lio/netty/buffer/ByteBuf;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.threadCache:Lio/netty/buffer/PooledByteBufAllocator$PoolThreadLocalCache;
invokevirtual io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.get:()Ljava/lang/Object;
checkcast io.netty.buffer.PoolThreadCache
astore 3
start local 3 1: aload 3
getfield io.netty.buffer.PoolThreadCache.directArena:Lio/netty/buffer/PoolArena;
astore 4
start local 4 2: aload 4
ifnull 5
3: aload 4
aload 3
iload 1
iload 2
invokevirtual io.netty.buffer.PoolArena.allocate:(Lio/netty/buffer/PoolThreadCache;II)Lio/netty/buffer/PooledByteBuf;
astore 5
start local 5 4: goto 9
end local 5 5: StackMap locals: io.netty.buffer.PoolThreadCache io.netty.buffer.PoolArena
StackMap stack:
invokestatic io.netty.util.internal.PlatformDependent.hasUnsafe:()Z
ifeq 7
6: aload 0
iload 1
iload 2
invokestatic io.netty.buffer.UnsafeByteBufUtil.newUnsafeDirectByteBuf:(Lio/netty/buffer/ByteBufAllocator;II)Lio/netty/buffer/UnpooledUnsafeDirectByteBuf;
goto 8
7: StackMap locals:
StackMap stack:
new io.netty.buffer.UnpooledDirectByteBuf
dup
aload 0
iload 1
iload 2
invokespecial io.netty.buffer.UnpooledDirectByteBuf.<init>:(Lio/netty/buffer/ByteBufAllocator;II)V
8: StackMap locals:
StackMap stack: io.netty.buffer.AbstractReferenceCountedByteBuf
astore 5
start local 5 9: StackMap locals: io.netty.buffer.ByteBuf
StackMap stack:
aload 5
invokestatic io.netty.buffer.PooledByteBufAllocator.toLeakAwareBuffer:(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/netty/buffer/PooledByteBufAllocator;
0 10 1 initialCapacity I
0 10 2 maxCapacity I
1 10 3 cache Lio/netty/buffer/PoolThreadCache;
2 10 4 directArena Lio/netty/buffer/PoolArena<Ljava/nio/ByteBuffer;>;
4 5 5 buf Lio/netty/buffer/ByteBuf;
9 10 5 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
initialCapacity
maxCapacity
public static int defaultNumHeapArena();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NUM_HEAP_ARENA:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int defaultNumDirectArena();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NUM_DIRECT_ARENA:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int defaultPageSize();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_PAGE_SIZE:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int defaultMaxOrder();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_MAX_ORDER:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static boolean defaultUseCacheForAllThreads();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_USE_CACHE_FOR_ALL_THREADS:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static boolean defaultPreferDirect();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic io.netty.util.internal.PlatformDependent.directBufferPreferred:()Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int defaultTinyCacheSize();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_TINY_CACHE_SIZE:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int defaultSmallCacheSize();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_SMALL_CACHE_SIZE:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int defaultNormalCacheSize();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT_NORMAL_CACHE_SIZE:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static boolean isDirectMemoryCacheAlignmentSupported();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic io.netty.util.internal.PlatformDependent.hasUnsafe:()Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public boolean isDirectBufferPooled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/buffer/PooledByteBufAllocator;
public boolean hasThreadLocalCache();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.threadCache:Lio/netty/buffer/PooledByteBufAllocator$PoolThreadLocalCache;
invokevirtual io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.isSet:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public void freeThreadLocalCache();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.threadCache:Lio/netty/buffer/PooledByteBufAllocator$PoolThreadLocalCache;
invokevirtual io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.remove:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/buffer/PooledByteBufAllocator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public io.netty.buffer.PooledByteBufAllocatorMetric metric();
descriptor: ()Lio/netty/buffer/PooledByteBufAllocatorMetric;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.metric:Lio/netty/buffer/PooledByteBufAllocatorMetric;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
public int numHeapArenas();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenaMetrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public int numDirectArenas();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenaMetrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public java.util.List<io.netty.buffer.PoolArenaMetric> heapArenas();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenaMetrics:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
Signature: ()Ljava/util/List<Lio/netty/buffer/PoolArenaMetric;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public java.util.List<io.netty.buffer.PoolArenaMetric> directArenas();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenaMetrics:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
Signature: ()Ljava/util/List<Lio/netty/buffer/PoolArenaMetric;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public int numThreadLocalCaches();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
ifnull 1
aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
StackMap locals:
StackMap stack: io.netty.buffer.PoolArena[]
2: astore 1
start local 1 3: aload 1
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals: io.netty.buffer.PoolArena[]
StackMap stack:
iconst_0
istore 2
start local 2 6: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 10
StackMap locals: io.netty.buffer.PooledByteBufAllocator io.netty.buffer.PoolArena[] int top int int io.netty.buffer.PoolArena[]
StackMap stack:
7: aload 6
iload 4
aaload
astore 3
start local 3 8: iload 2
aload 3
getfield io.netty.buffer.PoolArena.numThreadCaches:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
iadd
istore 2
end local 3 9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 5
if_icmplt 7
11: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/netty/buffer/PooledByteBufAllocator;
3 12 1 arenas [Lio/netty/buffer/PoolArena;
6 12 2 total I
8 9 3 arena Lio/netty/buffer/PoolArena<*>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public int tinyCacheSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.tinyCacheSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public int smallCacheSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.smallCacheSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public int normalCacheSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.normalCacheSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public final int chunkSize();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.chunkSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
final long usedHeapMemory();
descriptor: ()J
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
invokestatic io.netty.buffer.PooledByteBufAllocator.usedMemory:([Lio/netty/buffer/PoolArena;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
final long usedDirectMemory();
descriptor: ()J
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
invokestatic io.netty.buffer.PooledByteBufAllocator.usedMemory:([Lio/netty/buffer/PoolArena;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/PooledByteBufAllocator;
private static long usedMemory(io.netty.buffer.PoolArena<?>[]);
descriptor: ([Lio/netty/buffer/PoolArena;)J
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: ldc -1
lreturn
2: StackMap locals:
StackMap stack:
lconst_0
lstore 1
start local 1 3: aload 0
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 9
StackMap locals: io.netty.buffer.PoolArena[] long top int int io.netty.buffer.PoolArena[]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: lload 1
aload 3
invokevirtual io.netty.buffer.PoolArena.numActiveBytes:()J
ladd
lstore 1
6: lload 1
lconst_0
lcmp
ifge 8
7: ldc 9223372036854775807
lreturn
end local 3 8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 5
if_icmplt 4
10: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 arenas [Lio/netty/buffer/PoolArena;
3 11 1 used J
5 8 3 arena Lio/netty/buffer/PoolArena<*>;
Signature: ([Lio/netty/buffer/PoolArena<*>;)J
MethodParameters:
Name Flags
arenas
final io.netty.buffer.PoolThreadCache threadCache();
descriptor: ()Lio/netty/buffer/PoolThreadCache;
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.threadCache:Lio/netty/buffer/PooledByteBufAllocator$PoolThreadLocalCache;
invokevirtual io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache.get:()Ljava/lang/Object;
checkcast io.netty.buffer.PoolThreadCache
astore 1
start local 1 1: getstatic io.netty.buffer.PooledByteBufAllocator.$assertionsDisabled:Z
ifne 2
aload 1
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: io.netty.buffer.PoolThreadCache
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/buffer/PooledByteBufAllocator;
1 3 1 cache Lio/netty/buffer/PoolThreadCache;
public java.lang.String dumpStats();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
ifnonnull 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
arraylength
StackMap locals:
StackMap stack: int
2: istore 1
start local 1 3: new java.lang.StringBuilder
dup
sipush 512
invokespecial java.lang.StringBuilder.<init>:(I)V
4: iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
5: ldc " heap arena(s):"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: getstatic io.netty.util.internal.StringUtil.NEWLINE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: astore 2
start local 2 8: iload 1
ifle 14
9: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.heapArenas:[Lio/netty/buffer/PoolArena;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 13
StackMap locals: io.netty.buffer.PooledByteBufAllocator int java.lang.StringBuilder top int int io.netty.buffer.PoolArena[]
StackMap stack:
10: aload 6
iload 4
aaload
astore 3
start local 3 11: aload 2
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
end local 3 12: iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
iload 5
if_icmplt 10
14: StackMap locals: io.netty.buffer.PooledByteBufAllocator int java.lang.StringBuilder
StackMap stack:
aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
ifnonnull 15
iconst_0
goto 16
StackMap locals:
StackMap stack:
15: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
arraylength
StackMap locals:
StackMap stack: int
16: istore 3
start local 3 17: aload 2
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
18: ldc " direct arena(s):"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: getstatic io.netty.util.internal.StringUtil.NEWLINE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
20: iload 3
ifle 26
21: aload 0
getfield io.netty.buffer.PooledByteBufAllocator.directArenas:[Lio/netty/buffer/PoolArena;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 25
StackMap locals: io.netty.buffer.PooledByteBufAllocator int java.lang.StringBuilder int top int int io.netty.buffer.PoolArena[]
StackMap stack:
22: aload 7
iload 5
aaload
astore 4
start local 4 23: aload 2
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
end local 4 24: iinc 5 1
StackMap locals:
StackMap stack:
25: iload 5
iload 6
if_icmplt 22
26: StackMap locals: io.netty.buffer.PooledByteBufAllocator int java.lang.StringBuilder int
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lio/netty/buffer/PooledByteBufAllocator;
3 27 1 heapArenasLen I
8 27 2 buf Ljava/lang/StringBuilder;
11 12 3 a Lio/netty/buffer/PoolArena<[B>;
17 27 3 directArenasLen I
23 24 4 a Lio/netty/buffer/PoolArena<Ljava/nio/ByteBuffer;>;
public io.netty.buffer.ByteBufAllocatorMetric metric();
descriptor: ()Lio/netty/buffer/ByteBufAllocatorMetric;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.netty.buffer.PooledByteBufAllocator.metric:()Lio/netty/buffer/PooledByteBufAllocatorMetric;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "PooledByteBufAllocator.java"
NestMembers:
io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache
InnerClasses:
final DirectArena = io.netty.buffer.PoolArena$DirectArena of io.netty.buffer.PoolArena
final HeapArena = io.netty.buffer.PoolArena$HeapArena of io.netty.buffer.PoolArena
final PoolThreadLocalCache = io.netty.buffer.PooledByteBufAllocator$PoolThreadLocalCache of io.netty.buffer.PooledByteBufAllocator