public class org.apache.tomcat.util.collections.SynchronizedQueue<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.collections.SynchronizedQueue
super_class: java.lang.Object
{
public static final int DEFAULT_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 128
private java.lang.Object[] queue;
descriptor: [Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int insert;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int remove;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 128
invokespecial org.apache.tomcat.util.collections.SynchronizedQueue.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/collections/SynchronizedQueue<TT;>;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
2: aload 0
iconst_0
putfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
3: aload 0
iload 1
anewarray java.lang.Object
putfield org.apache.tomcat.util.collections.SynchronizedQueue.queue:[Ljava/lang/Object;
4: aload 0
iload 1
putfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/tomcat/util/collections/SynchronizedQueue<TT;>;
0 6 1 initialSize I
MethodParameters:
Name Flags
initialSize
public synchronized boolean offer();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.queue:[Ljava/lang/Object;
aload 0
dup
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
dup_x1
iconst_1
iadd
putfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
aload 1
aastore
1: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
if_icmpne 3
2: aload 0
iconst_0
putfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
if_icmpne 5
4: aload 0
invokevirtual org.apache.tomcat.util.collections.SynchronizedQueue.expand:()V
5: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/tomcat/util/collections/SynchronizedQueue<TT;>;
0 6 1 t TT;
Signature: (TT;)Z
MethodParameters:
Name Flags
t
public synchronized T poll();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
if_icmpne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.queue:[Ljava/lang/Object;
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
aaload
astore 1
start local 1 3: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.queue:[Ljava/lang/Object;
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
aconst_null
aastore
4: aload 0
dup
getfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
iconst_1
iadd
putfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
5: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
if_icmpne 7
6: aload 0
iconst_0
putfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
7: StackMap locals: java.lang.Object
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/tomcat/util/collections/SynchronizedQueue<TT;>;
3 8 1 result TT;
Signature: ()TT;
private void expand();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
iconst_2
imul
istore 1
start local 1 1: iload 1
anewarray java.lang.Object
astore 2
start local 2 2: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.queue:[Ljava/lang/Object;
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
aload 2
iconst_0
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.queue:[Ljava/lang/Object;
iconst_0
aload 2
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
isub
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 0
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
putfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
5: aload 0
iconst_0
putfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
6: aload 0
aload 2
putfield org.apache.tomcat.util.collections.SynchronizedQueue.queue:[Ljava/lang/Object;
7: aload 0
iload 1
putfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/tomcat/util/collections/SynchronizedQueue<TT;>;
1 9 1 newSize I
2 9 2 newQueue [Ljava/lang/Object;
public synchronized int size();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
isub
istore 1
start local 1 1: iload 1
ifge 3
2: iload 1
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
iadd
istore 1
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/collections/SynchronizedQueue<TT;>;
1 4 1 result I
public synchronized void clear();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedQueue.size:I
anewarray java.lang.Object
putfield org.apache.tomcat.util.collections.SynchronizedQueue.queue:[Ljava/lang/Object;
1: aload 0
iconst_0
putfield org.apache.tomcat.util.collections.SynchronizedQueue.insert:I
2: aload 0
iconst_0
putfield org.apache.tomcat.util.collections.SynchronizedQueue.remove:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/collections/SynchronizedQueue<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "SynchronizedQueue.java"