final class io.netty.util.Recycler$WeakOrderQueue
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.util.Recycler$WeakOrderQueue
super_class: java.lang.Object
{
static final io.netty.util.Recycler$WeakOrderQueue DUMMY;
descriptor: Lio/netty/util/Recycler$WeakOrderQueue;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private final io.netty.util.Recycler$WeakOrderQueue$Head head;
descriptor: Lio/netty/util/Recycler$WeakOrderQueue$Head;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.netty.util.Recycler$WeakOrderQueue$Link tail;
descriptor: Lio/netty/util/Recycler$WeakOrderQueue$Link;
flags: (0x0002) ACC_PRIVATE
private io.netty.util.Recycler$WeakOrderQueue next;
descriptor: Lio/netty/util/Recycler$WeakOrderQueue;
flags: (0x0002) ACC_PRIVATE
private final java.lang.ref.WeakReference<java.lang.Thread> owner;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/WeakReference<Ljava/lang/Thread;>;
private final int id;
descriptor: I
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=2, locals=0, args_size=0
0: ldc Lio/netty/util/Recycler;
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.util.Recycler$WeakOrderQueue.$assertionsDisabled:Z
3: new io.netty.util.Recycler$WeakOrderQueue
dup
invokespecial io.netty.util.Recycler$WeakOrderQueue.<init>:()V
putstatic io.netty.util.Recycler$WeakOrderQueue.DUMMY:Lio/netty/util/Recycler$WeakOrderQueue;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic io.netty.util.Recycler.ID_GENERATOR:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
putfield io.netty.util.Recycler$WeakOrderQueue.id:I
2: aload 0
aconst_null
putfield io.netty.util.Recycler$WeakOrderQueue.owner:Ljava/lang/ref/WeakReference;
3: aload 0
new io.netty.util.Recycler$WeakOrderQueue$Head
dup
aconst_null
invokespecial io.netty.util.Recycler$WeakOrderQueue$Head.<init>:(Ljava/util/concurrent/atomic/AtomicInteger;)V
putfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/util/Recycler$WeakOrderQueue;
private void <init>(io.netty.util.Recycler$Stack<?>, java.lang.Thread);
descriptor: (Lio/netty/util/Recycler$Stack;Ljava/lang/Thread;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic io.netty.util.Recycler.ID_GENERATOR:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
putfield io.netty.util.Recycler$WeakOrderQueue.id:I
2: aload 0
new io.netty.util.Recycler$WeakOrderQueue$Link
dup
invokespecial io.netty.util.Recycler$WeakOrderQueue$Link.<init>:()V
putfield io.netty.util.Recycler$WeakOrderQueue.tail:Lio/netty/util/Recycler$WeakOrderQueue$Link;
3: aload 0
new io.netty.util.Recycler$WeakOrderQueue$Head
dup
aload 1
getfield io.netty.util.Recycler$Stack.availableSharedCapacity:Ljava/util/concurrent/atomic/AtomicInteger;
invokespecial io.netty.util.Recycler$WeakOrderQueue$Head.<init>:(Ljava/util/concurrent/atomic/AtomicInteger;)V
putfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
4: aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.tail:Lio/netty/util/Recycler$WeakOrderQueue$Link;
putfield io.netty.util.Recycler$WeakOrderQueue$Head.link:Lio/netty/util/Recycler$WeakOrderQueue$Link;
5: aload 0
new java.lang.ref.WeakReference
dup
aload 2
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield io.netty.util.Recycler$WeakOrderQueue.owner:Ljava/lang/ref/WeakReference;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/util/Recycler$WeakOrderQueue;
0 7 1 stack Lio/netty/util/Recycler$Stack<*>;
0 7 2 thread Ljava/lang/Thread;
Signature: (Lio/netty/util/Recycler$Stack<*>;Ljava/lang/Thread;)V
MethodParameters:
Name Flags
stack
thread
static io.netty.util.Recycler$WeakOrderQueue newQueue(io.netty.util.Recycler$Stack<?>, java.lang.Thread);
descriptor: (Lio/netty/util/Recycler$Stack;Ljava/lang/Thread;)Lio/netty/util/Recycler$WeakOrderQueue;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new io.netty.util.Recycler$WeakOrderQueue
dup
aload 0
aload 1
invokespecial io.netty.util.Recycler$WeakOrderQueue.<init>:(Lio/netty/util/Recycler$Stack;Ljava/lang/Thread;)V
astore 2
start local 2 1: aload 0
aload 2
invokevirtual io.netty.util.Recycler$Stack.setHead:(Lio/netty/util/Recycler$WeakOrderQueue;)V
2: aload 2
getfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
astore 3
start local 3 3: aload 2
aload 3
invokestatic io.netty.util.internal.ObjectCleaner.register:(Ljava/lang/Object;Ljava/lang/Runnable;)V
4: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 stack Lio/netty/util/Recycler$Stack<*>;
0 5 1 thread Ljava/lang/Thread;
1 5 2 queue Lio/netty/util/Recycler$WeakOrderQueue;
3 5 3 head Lio/netty/util/Recycler$WeakOrderQueue$Head;
Signature: (Lio/netty/util/Recycler$Stack<*>;Ljava/lang/Thread;)Lio/netty/util/Recycler$WeakOrderQueue;
MethodParameters:
Name Flags
stack
thread
private void setNext(io.netty.util.Recycler$WeakOrderQueue);
descriptor: (Lio/netty/util/Recycler$WeakOrderQueue;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.netty.util.Recycler$WeakOrderQueue.$assertionsDisabled:Z
ifne 1
aload 1
aload 0
if_acmpne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.netty.util.Recycler$WeakOrderQueue.next:Lio/netty/util/Recycler$WeakOrderQueue;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/util/Recycler$WeakOrderQueue;
0 3 1 next Lio/netty/util/Recycler$WeakOrderQueue;
MethodParameters:
Name Flags
next
static io.netty.util.Recycler$WeakOrderQueue allocate(io.netty.util.Recycler$Stack<?>, java.lang.Thread);
descriptor: (Lio/netty/util/Recycler$Stack;Ljava/lang/Thread;)Lio/netty/util/Recycler$WeakOrderQueue;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.util.Recycler$Stack.availableSharedCapacity:Ljava/util/concurrent/atomic/AtomicInteger;
getstatic io.netty.util.Recycler.LINK_CAPACITY:I
invokestatic io.netty.util.Recycler$WeakOrderQueue$Head.reserveSpace:(Ljava/util/concurrent/atomic/AtomicInteger;I)Z
ifeq 2
1: aload 0
aload 1
invokestatic io.netty.util.Recycler$WeakOrderQueue.newQueue:(Lio/netty/util/Recycler$Stack;Ljava/lang/Thread;)Lio/netty/util/Recycler$WeakOrderQueue;
goto 3
StackMap locals:
StackMap stack:
2: aconst_null
3: StackMap locals:
StackMap stack: io.netty.util.Recycler$WeakOrderQueue
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 stack Lio/netty/util/Recycler$Stack<*>;
0 4 1 thread Ljava/lang/Thread;
Signature: (Lio/netty/util/Recycler$Stack<*>;Ljava/lang/Thread;)Lio/netty/util/Recycler$WeakOrderQueue;
MethodParameters:
Name Flags
stack
thread
void add(io.netty.util.Recycler$DefaultHandle<?>);
descriptor: (Lio/netty/util/Recycler$DefaultHandle;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.id:I
putfield io.netty.util.Recycler$DefaultHandle.lastRecycledId:I
1: aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.tail:Lio/netty/util/Recycler$WeakOrderQueue$Link;
astore 2
start local 2 2: aload 2
invokevirtual io.netty.util.Recycler$WeakOrderQueue$Link.get:()I
dup
istore 3
start local 3 3: getstatic io.netty.util.Recycler.LINK_CAPACITY:I
if_icmpne 8
4: aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
getstatic io.netty.util.Recycler.LINK_CAPACITY:I
invokevirtual io.netty.util.Recycler$WeakOrderQueue$Head.reserveSpace:(I)Z
ifne 6
5: return
6: StackMap locals: io.netty.util.Recycler$WeakOrderQueue$Link int
StackMap stack:
aload 0
aload 2
new io.netty.util.Recycler$WeakOrderQueue$Link
dup
invokespecial io.netty.util.Recycler$WeakOrderQueue$Link.<init>:()V
dup_x1
putfield io.netty.util.Recycler$WeakOrderQueue$Link.next:Lio/netty/util/Recycler$WeakOrderQueue$Link;
dup
astore 2
putfield io.netty.util.Recycler$WeakOrderQueue.tail:Lio/netty/util/Recycler$WeakOrderQueue$Link;
7: aload 2
invokevirtual io.netty.util.Recycler$WeakOrderQueue$Link.get:()I
istore 3
8: StackMap locals:
StackMap stack:
aload 2
getfield io.netty.util.Recycler$WeakOrderQueue$Link.elements:[Lio/netty/util/Recycler$DefaultHandle;
iload 3
aload 1
aastore
9: aload 1
aconst_null
putfield io.netty.util.Recycler$DefaultHandle.stack:Lio/netty/util/Recycler$Stack;
10: aload 2
iload 3
iconst_1
iadd
invokevirtual io.netty.util.Recycler$WeakOrderQueue$Link.lazySet:(I)V
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/netty/util/Recycler$WeakOrderQueue;
0 12 1 handle Lio/netty/util/Recycler$DefaultHandle<*>;
2 12 2 tail Lio/netty/util/Recycler$WeakOrderQueue$Link;
3 12 3 writeIndex I
Signature: (Lio/netty/util/Recycler$DefaultHandle<*>;)V
MethodParameters:
Name Flags
handle
boolean hasFinalData();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.tail:Lio/netty/util/Recycler$WeakOrderQueue$Link;
getfield io.netty.util.Recycler$WeakOrderQueue$Link.readIndex:I
aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.tail:Lio/netty/util/Recycler$WeakOrderQueue$Link;
invokevirtual io.netty.util.Recycler$WeakOrderQueue$Link.get:()I
if_icmpeq 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/util/Recycler$WeakOrderQueue;
boolean transfer(io.netty.util.Recycler$Stack<?>);
descriptor: (Lio/netty/util/Recycler$Stack;)Z
flags: (0x0000)
Code:
stack=3, locals=13, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
getfield io.netty.util.Recycler$WeakOrderQueue$Head.link:Lio/netty/util/Recycler$WeakOrderQueue$Link;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: io.netty.util.Recycler$WeakOrderQueue$Link
StackMap stack:
aload 2
getfield io.netty.util.Recycler$WeakOrderQueue$Link.readIndex:I
getstatic io.netty.util.Recycler.LINK_CAPACITY:I
if_icmpne 7
4: aload 2
getfield io.netty.util.Recycler$WeakOrderQueue$Link.next:Lio/netty/util/Recycler$WeakOrderQueue$Link;
ifnonnull 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
aload 2
getfield io.netty.util.Recycler$WeakOrderQueue$Link.next:Lio/netty/util/Recycler$WeakOrderQueue$Link;
dup
astore 2
putfield io.netty.util.Recycler$WeakOrderQueue$Head.link:Lio/netty/util/Recycler$WeakOrderQueue$Link;
7: StackMap locals:
StackMap stack:
aload 2
getfield io.netty.util.Recycler$WeakOrderQueue$Link.readIndex:I
istore 3
start local 3 8: aload 2
invokevirtual io.netty.util.Recycler$WeakOrderQueue$Link.get:()I
istore 4
start local 4 9: iload 4
iload 3
isub
istore 5
start local 5 10: iload 5
ifne 12
11: iconst_0
ireturn
12: StackMap locals: int int int
StackMap stack:
aload 1
getfield io.netty.util.Recycler$Stack.size:I
istore 6
start local 6 13: iload 6
iload 5
iadd
istore 7
start local 7 14: iload 7
aload 1
getfield io.netty.util.Recycler$Stack.elements:[Lio/netty/util/Recycler$DefaultHandle;
arraylength
if_icmple 17
15: aload 1
iload 7
invokevirtual io.netty.util.Recycler$Stack.increaseCapacity:(I)I
istore 8
start local 8 16: iload 3
iload 8
iadd
iload 6
isub
iload 4
invokestatic java.lang.Math.min:(II)I
istore 4
end local 8 17: StackMap locals: int int
StackMap stack:
iload 3
iload 4
if_icmpeq 44
18: aload 2
getfield io.netty.util.Recycler$WeakOrderQueue$Link.elements:[Lio/netty/util/Recycler$DefaultHandle;
astore 8
start local 8 19: aload 1
getfield io.netty.util.Recycler$Stack.elements:[Lio/netty/util/Recycler$DefaultHandle;
astore 9
start local 9 20: iload 6
istore 10
start local 10 21: iload 3
istore 11
start local 11 22: goto 35
23: StackMap locals: io.netty.util.Recycler$WeakOrderQueue io.netty.util.Recycler$Stack io.netty.util.Recycler$WeakOrderQueue$Link int int int int int io.netty.util.Recycler$DefaultHandle[] io.netty.util.Recycler$DefaultHandle[] int int
StackMap stack:
aload 8
iload 11
aaload
astore 12
start local 12 24: aload 12
getfield io.netty.util.Recycler$DefaultHandle.recycleId:I
ifne 27
25: aload 12
aload 12
getfield io.netty.util.Recycler$DefaultHandle.lastRecycledId:I
putfield io.netty.util.Recycler$DefaultHandle.recycleId:I
26: goto 29
StackMap locals: io.netty.util.Recycler$DefaultHandle
StackMap stack:
27: aload 12
getfield io.netty.util.Recycler$DefaultHandle.recycleId:I
aload 12
getfield io.netty.util.Recycler$DefaultHandle.lastRecycledId:I
if_icmpeq 29
28: new java.lang.IllegalStateException
dup
ldc "recycled already"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
29: StackMap locals:
StackMap stack:
aload 8
iload 11
aconst_null
aastore
30: aload 1
aload 12
invokevirtual io.netty.util.Recycler$Stack.dropHandle:(Lio/netty/util/Recycler$DefaultHandle;)Z
ifeq 32
31: goto 34
32: StackMap locals:
StackMap stack:
aload 12
aload 1
putfield io.netty.util.Recycler$DefaultHandle.stack:Lio/netty/util/Recycler$Stack;
33: aload 9
iload 10
iinc 10 1
aload 12
aastore
end local 12 34: StackMap locals:
StackMap stack:
iinc 11 1
StackMap locals:
StackMap stack:
35: iload 11
iload 4
if_icmplt 23
end local 11 36: iload 4
getstatic io.netty.util.Recycler.LINK_CAPACITY:I
if_icmpne 39
aload 2
getfield io.netty.util.Recycler$WeakOrderQueue$Link.next:Lio/netty/util/Recycler$WeakOrderQueue$Link;
ifnull 39
37: aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
getstatic io.netty.util.Recycler.LINK_CAPACITY:I
invokevirtual io.netty.util.Recycler$WeakOrderQueue$Head.reclaimSpace:(I)V
38: aload 0
getfield io.netty.util.Recycler$WeakOrderQueue.head:Lio/netty/util/Recycler$WeakOrderQueue$Head;
aload 2
getfield io.netty.util.Recycler$WeakOrderQueue$Link.next:Lio/netty/util/Recycler$WeakOrderQueue$Link;
putfield io.netty.util.Recycler$WeakOrderQueue$Head.link:Lio/netty/util/Recycler$WeakOrderQueue$Link;
39: StackMap locals:
StackMap stack:
aload 2
iload 4
putfield io.netty.util.Recycler$WeakOrderQueue$Link.readIndex:I
40: aload 1
getfield io.netty.util.Recycler$Stack.size:I
iload 10
if_icmpne 42
41: iconst_0
ireturn
42: StackMap locals:
StackMap stack:
aload 1
iload 10
putfield io.netty.util.Recycler$Stack.size:I
43: iconst_1
ireturn
end local 10 end local 9 end local 8 44: StackMap locals:
StackMap stack:
iconst_0
ireturn
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 45 0 this Lio/netty/util/Recycler$WeakOrderQueue;
0 45 1 dst Lio/netty/util/Recycler$Stack<*>;
1 45 2 head Lio/netty/util/Recycler$WeakOrderQueue$Link;
8 45 3 srcStart I
9 45 4 srcEnd I
10 45 5 srcSize I
13 45 6 dstSize I
14 45 7 expectedCapacity I
16 17 8 actualCapacity I
19 44 8 srcElems [Lio/netty/util/Recycler$DefaultHandle;
20 44 9 dstElems [Lio/netty/util/Recycler$DefaultHandle;
21 44 10 newDstSize I
22 36 11 i I
24 34 12 element Lio/netty/util/Recycler$DefaultHandle;
Signature: (Lio/netty/util/Recycler$Stack<*>;)Z
MethodParameters:
Name Flags
dst
}
SourceFile: "Recycler.java"
NestHost: io.netty.util.Recycler
InnerClasses:
final DefaultHandle = io.netty.util.Recycler$DefaultHandle of io.netty.util.Recycler
final Stack = io.netty.util.Recycler$Stack of io.netty.util.Recycler
private final WeakOrderQueue = io.netty.util.Recycler$WeakOrderQueue of io.netty.util.Recycler
final Head = io.netty.util.Recycler$WeakOrderQueue$Head of io.netty.util.Recycler$WeakOrderQueue
final Link = io.netty.util.Recycler$WeakOrderQueue$Link of io.netty.util.Recycler$WeakOrderQueue