public class org.apache.tomcat.util.collections.SynchronizedStack<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.collections.SynchronizedStack
super_class: java.lang.Object
{
public static final int DEFAULT_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 128
private static final int DEFAULT_LIMIT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final int limit;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int index;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.Object[] stack;
descriptor: [Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
sipush 128
iconst_m1
invokespecial org.apache.tomcat.util.collections.SynchronizedStack.<init>:(II)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/collections/SynchronizedStack<TT;>;
public void <init>(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
iconst_m1
putfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
2: iload 2
iconst_m1
if_icmple 5
iload 1
iload 2
if_icmple 5
3: aload 0
iload 2
putfield org.apache.tomcat.util.collections.SynchronizedStack.size:I
4: goto 6
5: StackMap locals: org.apache.tomcat.util.collections.SynchronizedStack int int
StackMap stack:
aload 0
iload 1
putfield org.apache.tomcat.util.collections.SynchronizedStack.size:I
6: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield org.apache.tomcat.util.collections.SynchronizedStack.limit:I
7: aload 0
iload 1
anewarray java.lang.Object
putfield org.apache.tomcat.util.collections.SynchronizedStack.stack:[Ljava/lang/Object;
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/SynchronizedStack<TT;>;
0 9 1 size I
0 9 2 limit I
MethodParameters:
Name Flags
size
limit
public synchronized boolean push();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
iconst_1
iadd
putfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
1: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.size:I
if_icmpne 7
2: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.limit:I
iconst_m1
if_icmpeq 3
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.size:I
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.limit:I
if_icmpge 5
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.collections.SynchronizedStack.expand:()V
4: goto 7
5: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
iconst_1
isub
putfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.stack:[Ljava/lang/Object;
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
aload 1
aastore
8: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/tomcat/util/collections/SynchronizedStack<TT;>;
0 9 1 obj TT;
Signature: (TT;)Z
MethodParameters:
Name Flags
obj
public synchronized T pop();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
iconst_m1
if_icmpne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.stack:[Ljava/lang/Object;
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
aaload
astore 1
start local 1 3: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.stack:[Ljava/lang/Object;
aload 0
dup
getfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
dup_x1
iconst_1
isub
putfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
aconst_null
aastore
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/collections/SynchronizedStack<TT;>;
3 5 1 result TT;
Signature: ()TT;
public synchronized void clear();
descriptor: ()V
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.SynchronizedStack.index:I
iconst_m1
if_icmple 6
1: iconst_0
istore 1
start local 1 2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.stack:[Ljava/lang/Object;
iload 1
aconst_null
aastore
4: iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
iconst_1
iadd
if_icmplt 3
end local 1 6: StackMap locals:
StackMap stack:
aload 0
iconst_m1
putfield org.apache.tomcat.util.collections.SynchronizedStack.index:I
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/tomcat/util/collections/SynchronizedStack<TT;>;
2 6 1 i I
private void expand();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.size:I
iconst_2
imul
istore 1
start local 1 1: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.limit:I
iconst_m1
if_icmpeq 3
iload 1
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.limit:I
if_icmple 3
2: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.limit:I
istore 1
3: StackMap locals: int
StackMap stack:
iload 1
anewarray java.lang.Object
astore 2
start local 2 4: aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.stack:[Ljava/lang/Object;
iconst_0
aload 2
iconst_0
aload 0
getfield org.apache.tomcat.util.collections.SynchronizedStack.size:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
aload 2
putfield org.apache.tomcat.util.collections.SynchronizedStack.stack:[Ljava/lang/Object;
6: aload 0
iload 1
putfield org.apache.tomcat.util.collections.SynchronizedStack.size:I
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/tomcat/util/collections/SynchronizedStack<TT;>;
1 8 1 newSize I
4 8 2 newStack [Ljava/lang/Object;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "SynchronizedStack.java"