public class java.util.concurrent.CopyOnWriteArrayList<E> implements java.util.List<E>, java.util.RandomAccess, java.lang.Cloneable, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.concurrent.CopyOnWriteArrayList
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8673264195747942595
final transient java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0090) ACC_FINAL, ACC_TRANSIENT
private volatile transient java.lang.Object[] array;
descriptor: [Ljava/lang/Object;
flags: (0x00c2) ACC_PRIVATE, ACC_VOLATILE, ACC_TRANSIENT
final java.lang.Object[] getArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.array:[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
final void setArray(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield java.util.concurrent.CopyOnWriteArrayList.array:[Ljava/lang/Object;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 a [Ljava/lang/Object;
MethodParameters:
Name Flags
a
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
2: aload 0
iconst_0
anewarray java.lang.Object
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
public void <init>(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
2: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/concurrent/CopyOnWriteArrayList;
if_acmpne 5
3: aload 1
checkcast java.util.concurrent.CopyOnWriteArrayList
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 4: goto 8
end local 2 5: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.Collection
StackMap stack:
aload 1
invokeinterface java.util.Collection.toArray:()[Ljava/lang/Object;
astore 2
start local 2 6: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/ArrayList;
if_acmpeq 8
7: aload 2
aload 2
arraylength
ldc [Ljava/lang/Object;
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
astore 2
8: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
aload 2
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 10 1 c Ljava/util/Collection<+TE;>;
4 5 2 es [Ljava/lang/Object;
6 10 2 es [Ljava/lang/Object;
Signature: (Ljava/util/Collection<+TE;>;)V
MethodParameters:
Name Flags
c
public void <init>();
descriptor: ([Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
2: aload 0
aload 1
aload 1
arraylength
ldc [Ljava/lang/Object;
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 4 1 toCopyIn [Ljava/lang/Object;
Signature: ([TE;)V
MethodParameters:
Name Flags
toCopyIn
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
arraylength
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.size:()I
ifne 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 Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
private static int indexOfRange(java.lang.Object, java.lang.Object[], int, int);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
ifnonnull 8
1: iload 2
istore 4
start local 4 2: goto 6
3: StackMap locals: int
StackMap stack:
aload 1
iload 4
aaload
ifnonnull 5
4: iload 4
ireturn
5: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 3
if_icmplt 3
end local 4 7: goto 14
8: StackMap locals:
StackMap stack:
iload 2
istore 4
start local 4 9: goto 13
10: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 4
aaload
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 12
11: iload 4
ireturn
12: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
iload 3
if_icmplt 10
end local 4 14: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 o Ljava/lang/Object;
0 15 1 es [Ljava/lang/Object;
0 15 2 from I
0 15 3 to I
2 7 4 i I
9 14 4 i I
MethodParameters:
Name Flags
o
es
from
to
private static int lastIndexOfRange(java.lang.Object, java.lang.Object[], int, int);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
ifnonnull 8
1: iload 3
iconst_1
isub
istore 4
start local 4 2: goto 6
3: StackMap locals: int
StackMap stack:
aload 1
iload 4
aaload
ifnonnull 5
4: iload 4
ireturn
5: StackMap locals:
StackMap stack:
iinc 4 -1
StackMap locals:
StackMap stack:
6: iload 4
iload 2
if_icmpge 3
end local 4 7: goto 14
8: StackMap locals:
StackMap stack:
iload 3
iconst_1
isub
istore 4
start local 4 9: goto 13
10: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 4
aaload
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 12
11: iload 4
ireturn
12: StackMap locals:
StackMap stack:
iinc 4 -1
StackMap locals:
StackMap stack:
13: iload 4
iload 2
if_icmpge 10
end local 4 14: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 o Ljava/lang/Object;
0 15 1 es [Ljava/lang/Object;
0 15 2 from I
0 15 3 to I
2 7 4 i I
9 14 4 i I
MethodParameters:
Name Flags
o
es
from
to
public boolean contains(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.util.concurrent.CopyOnWriteArrayList.indexOf:(Ljava/lang/Object;)I
iflt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public int indexOf(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 1
aload 2
iconst_0
aload 2
arraylength
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 o Ljava/lang/Object;
1 2 2 es [Ljava/lang/Object;
MethodParameters:
Name Flags
o
public int indexOf(E, );
descriptor: (Ljava/lang/Object;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 3
start local 3 1: aload 1
aload 3
iload 2
aload 3
arraylength
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 e TE;
0 2 2 index I
1 2 3 es [Ljava/lang/Object;
Signature: (TE;I)I
MethodParameters:
Name Flags
e
index
public int lastIndexOf(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 1
aload 2
iconst_0
aload 2
arraylength
invokestatic java.util.concurrent.CopyOnWriteArrayList.lastIndexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 o Ljava/lang/Object;
1 2 2 es [Ljava/lang/Object;
MethodParameters:
Name Flags
o
public int lastIndexOf(E, );
descriptor: (Ljava/lang/Object;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 3
start local 3 1: aload 1
aload 3
iconst_0
iload 2
iconst_1
iadd
invokestatic java.util.concurrent.CopyOnWriteArrayList.lastIndexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 e TE;
0 2 2 index I
1 2 3 es [Ljava/lang/Object;
Signature: (TE;I)I
MethodParameters:
Name Flags
e
index
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
checkcast java.util.concurrent.CopyOnWriteArrayList
1: astore 1
start local 1 2: aload 1
invokevirtual java.util.concurrent.CopyOnWriteArrayList.resetLock:()V
3: invokestatic java.lang.invoke.VarHandle.releaseFence:()V
4: aload 1
5: areturn
end local 1 6: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
pop
7: new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
2 6 1 clone Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
Exception table:
from to target type
0 5 6 Class java.lang.CloneNotSupportedException
public java.lang.Object[] toArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
invokevirtual java.lang.Object[].clone:()Ljava/lang/Object;
checkcast java.lang.Object[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
public <T> T[] toArray();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
arraylength
istore 3
start local 3 2: aload 1
arraylength
iload 3
if_icmpge 4
3: aload 2
iload 3
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
areturn
4: StackMap locals: java.lang.Object[] int
StackMap stack:
aload 2
iconst_0
aload 1
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 1
arraylength
iload 3
if_icmple 7
6: aload 1
iload 3
aconst_null
aastore
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 8 1 a [Ljava/lang/Object;
1 8 2 es [Ljava/lang/Object;
2 8 3 len I
Signature: <T:Ljava/lang/Object;>([TT;)[TT;
MethodParameters:
Name Flags
a
static <E> E elementAt([], );
descriptor: ([Ljava/lang/Object;I)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a [Ljava/lang/Object;
0 1 1 index I
Signature: <E:Ljava/lang/Object;>([Ljava/lang/Object;I)TE;
MethodParameters:
Name Flags
a
index
static java.lang.String outOfBounds(int, int);
descriptor: (II)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "Index: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", Size: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 index I
0 1 1 size I
MethodParameters:
Name Flags
index
size
public E get();
descriptor: (I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
iload 1
invokestatic java.util.concurrent.CopyOnWriteArrayList.elementAt:([Ljava/lang/Object;I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 1 1 index I
Signature: (I)TE;
MethodParameters:
Name Flags
index
public E set(int, );
descriptor: (ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 4
start local 4 2: aload 4
iload 1
invokestatic java.util.concurrent.CopyOnWriteArrayList.elementAt:([Ljava/lang/Object;I)Ljava/lang/Object;
astore 5
start local 5 3: aload 5
aload 2
if_acmpeq 6
4: aload 4
invokevirtual java.lang.Object[].clone:()Ljava/lang/Object;
checkcast java.lang.Object[]
astore 4
5: aload 4
iload 1
aload 2
aastore
6: StackMap locals: java.lang.Object java.lang.Object[] java.lang.Object
StackMap stack:
aload 0
aload 4
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
7: aload 5
aload 3
monitorexit
8: areturn
end local 5 end local 4 9: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int java.lang.Object java.lang.Object
StackMap stack: java.lang.Throwable
aload 3
monitorexit
10: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 11 1 index I
0 11 2 element TE;
2 9 4 es [Ljava/lang/Object;
3 9 5 oldValue TE;
Exception table:
from to target type
1 8 9 any
9 10 9 any
Signature: (ITE;)TE;
MethodParameters:
Name Flags
index
element
public boolean add();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 3
start local 3 2: aload 3
arraylength
istore 4
start local 4 3: aload 3
iload 4
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 3
4: aload 3
iload 4
aload 1
aastore
5: aload 0
aload 3
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
6: aload 2
monitorexit
7: iconst_1
ireturn
end local 4 end local 3 8: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.lang.Object
StackMap stack: java.lang.Throwable
aload 2
monitorexit
9: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 10 1 e TE;
2 8 3 es [Ljava/lang/Object;
3 8 4 len I
Exception table:
from to target type
1 7 8 any
8 9 8 any
Signature: (TE;)Z
MethodParameters:
Name Flags
e
public void add(int, );
descriptor: (ILjava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 4
start local 4 2: aload 4
arraylength
istore 5
start local 5 3: iload 1
iload 5
if_icmpgt 4
iload 1
ifge 5
4: StackMap locals: java.lang.Object java.lang.Object[] int
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
iload 1
iload 5
invokestatic java.util.concurrent.CopyOnWriteArrayList.outOfBounds:(II)Ljava/lang/String;
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
iload 5
iload 1
isub
istore 7
start local 7 6: iload 7
ifne 9
7: aload 4
iload 5
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 6
start local 6 8: goto 14
end local 6 9: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int java.lang.Object java.lang.Object java.lang.Object[] int top int
StackMap stack:
iload 5
iconst_1
iadd
anewarray java.lang.Object
astore 6
start local 6 10: aload 4
iconst_0
aload 6
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: aload 4
iload 1
aload 6
iload 1
iconst_1
iadd
12: iload 7
13: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
14: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int java.lang.Object java.lang.Object java.lang.Object[] int java.lang.Object[] int
StackMap stack:
aload 6
iload 1
aload 2
aastore
15: aload 0
aload 6
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
end local 7 end local 6 end local 5 end local 4 16: aload 3
monitorexit
17: goto 20
StackMap locals: java.util.concurrent.CopyOnWriteArrayList int java.lang.Object java.lang.Object
StackMap stack: java.lang.Throwable
18: aload 3
monitorexit
19: athrow
20: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 21 1 index I
0 21 2 element TE;
2 16 4 es [Ljava/lang/Object;
3 16 5 len I
8 9 6 newElements [Ljava/lang/Object;
10 16 6 newElements [Ljava/lang/Object;
6 16 7 numMoved I
Exception table:
from to target type
1 17 18 any
18 19 18 any
Signature: (ITE;)V
MethodParameters:
Name Flags
index
element
public E remove();
descriptor: (I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 3
start local 3 2: aload 3
arraylength
istore 4
start local 4 3: aload 3
iload 1
invokestatic java.util.concurrent.CopyOnWriteArrayList.elementAt:([Ljava/lang/Object;I)Ljava/lang/Object;
astore 5
start local 5 4: iload 4
iload 1
isub
iconst_1
isub
istore 6
start local 6 5: iload 6
ifne 8
6: aload 3
iload 4
iconst_1
isub
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 7
start local 7 7: goto 13
end local 7 8: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int java.lang.Object java.lang.Object[] int java.lang.Object int
StackMap stack:
iload 4
iconst_1
isub
anewarray java.lang.Object
astore 7
start local 7 9: aload 3
iconst_0
aload 7
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 3
iload 1
iconst_1
iadd
aload 7
iload 1
11: iload 6
12: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
aload 7
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
14: aload 5
aload 2
monitorexit
15: areturn
end local 7 end local 6 end local 5 end local 4 end local 3 16: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int java.lang.Object
StackMap stack: java.lang.Throwable
aload 2
monitorexit
17: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 18 1 index I
2 16 3 es [Ljava/lang/Object;
3 16 4 len I
4 16 5 oldValue TE;
5 16 6 numMoved I
7 8 7 newElements [Ljava/lang/Object;
9 16 7 newElements [Ljava/lang/Object;
Exception table:
from to target type
1 15 16 any
16 17 16 any
Signature: (I)TE;
MethodParameters:
Name Flags
index
public boolean remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 1
aload 2
iconst_0
aload 2
arraylength
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
istore 3
start local 3 2: iload 3
iflt 3
aload 0
aload 1
aload 2
iload 3
invokevirtual java.util.concurrent.CopyOnWriteArrayList.remove:(Ljava/lang/Object;[Ljava/lang/Object;I)Z
ifeq 3
iconst_1
ireturn
StackMap locals: java.lang.Object[] int
StackMap stack:
3: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 4 1 o Ljava/lang/Object;
1 4 2 snapshot [Ljava/lang/Object;
2 4 3 index I
MethodParameters:
Name Flags
o
private boolean remove(java.lang.Object, java.lang.Object[], int);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 5
start local 5 2: aload 5
arraylength
istore 6
start local 6 3: aload 2
aload 5
if_acmpeq 22
4: iload 3
iload 6
invokestatic java.lang.Math.min:(II)I
istore 7
start local 7 5: iconst_0
istore 8
start local 8 6: goto 12
7: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.lang.Object[] int java.lang.Object java.lang.Object[] int int int
StackMap stack:
aload 5
iload 8
aaload
aload 2
iload 8
aaload
if_acmpeq 11
8: aload 1
aload 5
iload 8
aaload
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 11
9: iload 8
istore 3
10: goto 22
11: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
12: iload 8
iload 7
if_icmplt 7
end local 8 13: iload 3
iload 6
if_icmplt 16
14: aload 4
monitorexit
15: iconst_0
ireturn
16: StackMap locals:
StackMap stack:
aload 5
iload 3
aaload
aload 1
if_acmpne 18
17: goto 22
18: StackMap locals:
StackMap stack:
aload 1
aload 5
iload 3
iload 6
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
istore 3
19: iload 3
ifge 22
20: aload 4
monitorexit
21: iconst_0
ireturn
end local 7 22: StackMap locals:
StackMap stack:
iload 6
iconst_1
isub
anewarray java.lang.Object
astore 7
start local 7 23: aload 5
iconst_0
aload 7
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
24: aload 5
iload 3
iconst_1
iadd
25: aload 7
iload 3
26: iload 6
iload 3
isub
iconst_1
isub
27: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
28: aload 0
aload 7
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
29: aload 4
monitorexit
30: iconst_1
ireturn
end local 7 end local 6 end local 5 31: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.lang.Object[] int java.lang.Object
StackMap stack: java.lang.Throwable
aload 4
monitorexit
32: athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 33 1 o Ljava/lang/Object;
0 33 2 snapshot [Ljava/lang/Object;
0 33 3 index I
2 31 5 current [Ljava/lang/Object;
3 31 6 len I
5 22 7 prefix I
6 13 8 i I
23 31 7 newElements [Ljava/lang/Object;
Exception table:
from to target type
1 15 31 any
16 21 31 any
22 30 31 any
31 32 31 any
MethodParameters:
Name Flags
o
snapshot
index
void removeRange(int, int);
descriptor: (II)V
flags: (0x0000)
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 4
start local 4 2: aload 4
arraylength
istore 5
start local 5 3: iload 1
iflt 4
iload 2
iload 5
if_icmpgt 4
iload 2
iload 1
if_icmpge 5
4: StackMap locals: java.lang.Object java.lang.Object[] int
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
iload 5
iload 2
iload 1
isub
isub
istore 6
start local 6 6: iload 5
iload 2
isub
istore 7
start local 7 7: iload 7
ifne 9
8: aload 0
aload 4
iload 6
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
goto 15
9: StackMap locals: int int
StackMap stack:
iload 6
anewarray java.lang.Object
astore 8
start local 8 10: aload 4
iconst_0
aload 8
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: aload 4
iload 2
aload 8
12: iload 1
iload 7
13: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
14: aload 0
aload 8
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
end local 8 end local 7 end local 6 end local 5 end local 4 15: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int int java.lang.Object
StackMap stack:
aload 3
monitorexit
16: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
17: aload 3
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 20 1 fromIndex I
0 20 2 toIndex I
2 15 4 es [Ljava/lang/Object;
3 15 5 len I
6 15 6 newlen I
7 15 7 numMoved I
10 15 8 newElements [Ljava/lang/Object;
Exception table:
from to target type
1 16 17 any
17 18 17 any
MethodParameters:
Name Flags
fromIndex
toIndex
public boolean addIfAbsent();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 1
aload 2
iconst_0
aload 2
arraylength
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
ifge 4
2: aload 0
aload 1
aload 2
invokevirtual java.util.concurrent.CopyOnWriteArrayList.addIfAbsent:(Ljava/lang/Object;[Ljava/lang/Object;)Z
ifeq 4
3: iconst_1
ireturn
StackMap locals: java.lang.Object[]
StackMap stack:
4: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 5 1 e TE;
1 5 2 snapshot [Ljava/lang/Object;
Signature: (TE;)Z
MethodParameters:
Name Flags
e
private boolean addIfAbsent(E, []);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 4
start local 4 2: aload 4
arraylength
istore 5
start local 5 3: aload 2
aload 4
if_acmpeq 16
4: aload 2
arraylength
iload 5
invokestatic java.lang.Math.min:(II)I
istore 6
start local 6 5: iconst_0
istore 7
start local 7 6: goto 12
7: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.lang.Object[] java.lang.Object java.lang.Object[] int int int
StackMap stack:
aload 4
iload 7
aaload
aload 2
iload 7
aaload
if_acmpeq 11
8: aload 1
aload 4
iload 7
aaload
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 11
9: aload 3
monitorexit
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
12: iload 7
iload 6
if_icmplt 7
end local 7 13: aload 1
aload 4
iload 6
iload 5
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
iflt 16
14: aload 3
monitorexit
15: iconst_0
ireturn
end local 6 16: StackMap locals:
StackMap stack:
aload 4
iload 5
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 6
start local 6 17: aload 6
iload 5
aload 1
aastore
18: aload 0
aload 6
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
19: aload 3
monitorexit
20: iconst_1
ireturn
end local 6 end local 5 end local 4 21: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.lang.Object[] java.lang.Object
StackMap stack: java.lang.Throwable
aload 3
monitorexit
22: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 23 1 e TE;
0 23 2 snapshot [Ljava/lang/Object;
2 21 4 current [Ljava/lang/Object;
3 21 5 len I
5 16 6 common I
6 13 7 i I
17 21 6 newElements [Ljava/lang/Object;
Exception table:
from to target type
1 10 21 any
11 15 21 any
16 20 21 any
21 22 21 any
Signature: (TE;[Ljava/lang/Object;)Z
MethodParameters:
Name Flags
e
snapshot
public boolean containsAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
arraylength
istore 3
start local 3 2: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.Collection java.lang.Object[] int top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 4: aload 4
aload 2
iconst_0
iload 3
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
ifge 6
5: iconst_0
ireturn
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 8 1 c Ljava/util/Collection<*>;
1 8 2 es [Ljava/lang/Object;
2 8 3 len I
4 6 4 e Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
c
public boolean removeAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokedynamic test(Ljava/util/Collection;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/util/concurrent/CopyOnWriteArrayList.lambda$0(Ljava/util/Collection;Ljava/lang/Object;)Z (6)
(Ljava/lang/Object;)Z
invokevirtual java.util.concurrent.CopyOnWriteArrayList.bulkRemove:(Ljava/util/function/Predicate;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 c Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
c
public boolean retainAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokedynamic test(Ljava/util/Collection;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/util/concurrent/CopyOnWriteArrayList.lambda$1(Ljava/util/Collection;Ljava/lang/Object;)Z (6)
(Ljava/lang/Object;)Z
invokevirtual java.util.concurrent.CopyOnWriteArrayList.bulkRemove:(Ljava/util/function/Predicate;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 c Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
c
public int addAllAbsent(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Collection.toArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/ArrayList;
if_acmpeq 3
2: aload 2
invokevirtual java.lang.Object[].clone:()Ljava/lang/Object;
checkcast java.lang.Object[]
astore 2
3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 2
arraylength
ifne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
6: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 4
start local 4 7: aload 4
arraylength
istore 5
start local 5 8: iconst_0
istore 6
start local 6 9: iconst_0
istore 7
start local 7 10: goto 16
11: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.Collection java.lang.Object[] java.lang.Object java.lang.Object[] int int int
StackMap stack:
aload 2
iload 7
aaload
astore 8
start local 8 12: aload 8
aload 4
iconst_0
iload 5
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
ifge 15
13: aload 8
aload 2
iconst_0
iload 6
invokestatic java.util.concurrent.CopyOnWriteArrayList.indexOfRange:(Ljava/lang/Object;[Ljava/lang/Object;II)I
ifge 15
14: aload 2
iload 6
iinc 6 1
aload 8
aastore
end local 8 15: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
16: iload 7
aload 2
arraylength
if_icmplt 11
end local 7 17: iload 6
ifle 21
18: aload 4
iload 5
iload 6
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 7
start local 7 19: aload 2
iconst_0
aload 7
iload 5
iload 6
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: aload 0
aload 7
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
end local 7 21: StackMap locals:
StackMap stack:
iload 6
aload 3
monitorexit
22: ireturn
end local 6 end local 5 end local 4 23: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.Collection java.lang.Object[] java.lang.Object
StackMap stack: java.lang.Throwable
aload 3
monitorexit
24: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 25 1 c Ljava/util/Collection<+TE;>;
1 25 2 cs [Ljava/lang/Object;
7 23 4 es [Ljava/lang/Object;
8 23 5 len I
9 23 6 added I
10 17 7 i I
12 15 8 e Ljava/lang/Object;
19 21 7 newElements [Ljava/lang/Object;
Exception table:
from to target type
6 22 23 any
23 24 23 any
Signature: (Ljava/util/Collection<+TE;>;)I
MethodParameters:
Name Flags
c
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_0
anewarray java.lang.Object
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
2: aload 1
monitorexit
3: goto 6
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
Exception table:
from to target type
1 3 4 any
4 5 4 any
public boolean addAll(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/concurrent/CopyOnWriteArrayList;
if_acmpne 2
1: aload 1
checkcast java.util.concurrent.CopyOnWriteArrayList
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
goto 3
StackMap locals:
StackMap stack:
2: aload 1
invokeinterface java.util.Collection.toArray:()[Ljava/lang/Object;
3: StackMap locals:
StackMap stack: java.lang.Object[]
astore 2
start local 2 4: aload 2
arraylength
ifne 6
5: iconst_0
ireturn
6: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
7: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 4
start local 4 8: aload 4
arraylength
istore 5
start local 5 9: iload 5
ifne 13
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/concurrent/CopyOnWriteArrayList;
if_acmpeq 11
10: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/ArrayList;
if_acmpne 13
11: StackMap locals: java.lang.Object java.lang.Object[] int
StackMap stack:
aload 2
astore 6
start local 6 12: goto 15
end local 6 13: StackMap locals:
StackMap stack:
aload 4
iload 5
aload 2
arraylength
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 6
start local 6 14: aload 2
iconst_0
aload 6
iload 5
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
aload 6
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
16: aload 3
monitorexit
17: iconst_1
ireturn
end local 6 end local 5 end local 4 18: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.Collection java.lang.Object[] java.lang.Object
StackMap stack: java.lang.Throwable
aload 3
monitorexit
19: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 20 1 c Ljava/util/Collection<+TE;>;
4 20 2 cs [Ljava/lang/Object;
8 18 4 es [Ljava/lang/Object;
9 18 5 len I
12 13 6 newElements [Ljava/lang/Object;
14 18 6 newElements [Ljava/lang/Object;
Exception table:
from to target type
7 17 18 any
18 19 18 any
Signature: (Ljava/util/Collection<+TE;>;)Z
MethodParameters:
Name Flags
c
public boolean addAll(int, java.util.Collection<? extends E>);
descriptor: (ILjava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.util.Collection.toArray:()[Ljava/lang/Object;
astore 3
start local 3 1: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
2: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 5
start local 5 3: aload 5
arraylength
istore 6
start local 6 4: iload 1
iload 6
if_icmpgt 5
iload 1
ifge 6
5: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int java.util.Collection java.lang.Object[] java.lang.Object java.lang.Object[] int
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
iload 1
iload 6
invokestatic java.util.concurrent.CopyOnWriteArrayList.outOfBounds:(II)Ljava/lang/String;
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 3
arraylength
ifne 9
7: aload 4
monitorexit
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
iload 6
iload 1
isub
istore 7
start local 7 10: iload 7
ifne 13
11: aload 5
iload 6
aload 3
arraylength
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 8
start local 8 12: goto 19
end local 8 13: StackMap locals: int
StackMap stack:
iload 6
aload 3
arraylength
iadd
anewarray java.lang.Object
astore 8
start local 8 14: aload 5
iconst_0
aload 8
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: aload 5
iload 1
16: aload 8
iload 1
aload 3
arraylength
iadd
17: iload 7
18: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
19: StackMap locals: java.lang.Object[]
StackMap stack:
aload 3
iconst_0
aload 8
iload 1
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: aload 0
aload 8
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
21: aload 4
monitorexit
22: iconst_1
ireturn
end local 8 end local 7 end local 6 end local 5 23: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int java.util.Collection java.lang.Object[] java.lang.Object
StackMap stack: java.lang.Throwable
aload 4
monitorexit
24: athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 25 1 index I
0 25 2 c Ljava/util/Collection<+TE;>;
1 25 3 cs [Ljava/lang/Object;
3 23 5 es [Ljava/lang/Object;
4 23 6 len I
10 23 7 numMoved I
12 13 8 newElements [Ljava/lang/Object;
14 23 8 newElements [Ljava/lang/Object;
Exception table:
from to target type
2 8 23 any
9 22 23 any
23 24 23 any
Signature: (ILjava/util/Collection<+TE;>;)Z
MethodParameters:
Name Flags
index
c
public void forEach(java.util.function.Consumer<? super E>);
descriptor: (Ljava/util/function/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.function.Consumer top int int java.lang.Object[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
astore 6
start local 6 4: aload 1
aload 6
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 6 end local 2 5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 8 1 action Ljava/util/function/Consumer<-TE;>;
3 5 2 x Ljava/lang/Object;
4 5 6 e TE;
Signature: (Ljava/util/function/Consumer<-TE;>;)V
MethodParameters:
Name Flags
action
public boolean removeIf(java.util.function.Predicate<? super E>);
descriptor: (Ljava/util/function/Predicate;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual java.util.concurrent.CopyOnWriteArrayList.bulkRemove:(Ljava/util/function/Predicate;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 2 1 filter Ljava/util/function/Predicate<-TE;>;
Signature: (Ljava/util/function/Predicate<-TE;>;)Z
MethodParameters:
Name Flags
filter
private static long[] nBits(int);
descriptor: (I)[J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iconst_1
isub
bipush 6
ishr
iconst_1
iadd
newarray 11
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 n I
MethodParameters:
Name Flags
n
private static void setBit(long[], int);
descriptor: ([JI)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
bipush 6
ishr
dup2
laload
lconst_1
iload 1
lshl
lor
lastore
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 bits [J
0 2 1 i I
MethodParameters:
Name Flags
bits
i
private static boolean isClear(long[], int);
descriptor: ([JI)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
bipush 6
ishr
laload
lconst_1
iload 1
lshl
land
lconst_0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 bits [J
0 2 1 i I
MethodParameters:
Name Flags
bits
i
private boolean bulkRemove(java.util.function.Predicate<? super E>);
descriptor: (Ljava/util/function/Predicate;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
aload 1
iconst_0
aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
arraylength
invokevirtual java.util.concurrent.CopyOnWriteArrayList.bulkRemove:(Ljava/util/function/Predicate;II)Z
aload 2
monitorexit
2: ireturn
3: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.function.Predicate java.lang.Object
StackMap stack: java.lang.Throwable
aload 2
monitorexit
4: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 5 1 filter Ljava/util/function/Predicate<-TE;>;
Exception table:
from to target type
1 2 3 any
3 4 3 any
Signature: (Ljava/util/function/Predicate<-TE;>;)Z
MethodParameters:
Name Flags
filter
boolean bulkRemove(java.util.function.Predicate<? super E>, int, );
descriptor: (Ljava/util/function/Predicate;II)Z
flags: (0x0000)
Code:
stack=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 4
start local 4 1: goto 3
StackMap locals: java.lang.Object[]
StackMap stack:
2: iinc 2 1
StackMap locals:
StackMap stack:
3: iload 2
iload 3
if_icmpge 4
aload 1
aload 4
iload 2
invokestatic java.util.concurrent.CopyOnWriteArrayList.elementAt:([Ljava/lang/Object;I)Ljava/lang/Object;
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 2
4: StackMap locals:
StackMap stack:
iload 2
iload 3
if_icmpge 27
5: iload 2
istore 5
start local 5 6: iload 3
iload 5
isub
invokestatic java.util.concurrent.CopyOnWriteArrayList.nBits:(I)[J
astore 6
start local 6 7: iconst_1
istore 7
start local 7 8: aload 6
iconst_0
lconst_1
lastore
9: iload 5
iconst_1
iadd
istore 2
goto 14
10: StackMap locals: int long[] int
StackMap stack:
aload 1
aload 4
iload 2
invokestatic java.util.concurrent.CopyOnWriteArrayList.elementAt:([Ljava/lang/Object;I)Ljava/lang/Object;
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 13
11: aload 6
iload 2
iload 5
isub
invokestatic java.util.concurrent.CopyOnWriteArrayList.setBit:([JI)V
12: iinc 7 1
13: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
14: iload 2
iload 3
if_icmplt 10
15: aload 4
aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
if_acmpeq 17
16: new java.util.ConcurrentModificationException
dup
invokespecial java.util.ConcurrentModificationException.<init>:()V
athrow
17: StackMap locals:
StackMap stack:
aload 4
aload 4
arraylength
iload 7
isub
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 8
start local 8 18: iload 5
istore 9
start local 9 19: iload 5
istore 2
goto 23
20: StackMap locals: java.lang.Object[] int
StackMap stack:
aload 6
iload 2
iload 5
isub
invokestatic java.util.concurrent.CopyOnWriteArrayList.isClear:([JI)Z
ifeq 22
21: aload 8
iload 9
iinc 9 1
aload 4
iload 2
aaload
aastore
22: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
23: iload 2
iload 3
if_icmplt 20
24: aload 4
iload 2
aload 8
iload 9
aload 4
arraylength
iload 2
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
25: aload 0
aload 8
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
26: iconst_1
ireturn
end local 9 end local 8 end local 7 end local 6 end local 5 27: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.function.Predicate int int java.lang.Object[]
StackMap stack:
aload 4
aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
if_acmpeq 29
28: new java.util.ConcurrentModificationException
dup
invokespecial java.util.ConcurrentModificationException.<init>:()V
athrow
29: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 30 1 filter Ljava/util/function/Predicate<-TE;>;
0 30 2 i I
0 30 3 end I
1 30 4 es [Ljava/lang/Object;
6 27 5 beg I
7 27 6 deathRow [J
8 27 7 deleted I
18 27 8 newElts [Ljava/lang/Object;
19 27 9 w I
Signature: (Ljava/util/function/Predicate<-TE;>;II)Z
MethodParameters:
Name Flags
filter
i
end
public void replaceAll(java.util.function.UnaryOperator<E>);
descriptor: (Ljava/util/function/UnaryOperator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
aload 1
iconst_0
aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
arraylength
invokevirtual java.util.concurrent.CopyOnWriteArrayList.replaceAllRange:(Ljava/util/function/UnaryOperator;II)V
2: aload 2
monitorexit
3: goto 6
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.function.UnaryOperator java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 7 1 operator Ljava/util/function/UnaryOperator<TE;>;
Exception table:
from to target type
1 3 4 any
4 5 4 any
Signature: (Ljava/util/function/UnaryOperator<TE;>;)V
MethodParameters:
Name Flags
operator
void replaceAllRange(java.util.function.UnaryOperator<E>, int, );
descriptor: (Ljava/util/function/UnaryOperator;II)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
invokevirtual java.lang.Object[].clone:()Ljava/lang/Object;
checkcast java.lang.Object[]
astore 4
start local 4 2: goto 5
3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 4
iload 2
aload 1
aload 4
iload 2
invokestatic java.util.concurrent.CopyOnWriteArrayList.elementAt:([Ljava/lang/Object;I)Ljava/lang/Object;
invokeinterface java.util.function.UnaryOperator.apply:(Ljava/lang/Object;)Ljava/lang/Object;
aastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 3
if_icmplt 3
6: aload 0
aload 4
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 8 1 operator Ljava/util/function/UnaryOperator<TE;>;
0 8 2 i I
0 8 3 end I
2 8 4 es [Ljava/lang/Object;
Signature: (Ljava/util/function/UnaryOperator<TE;>;II)V
MethodParameters:
Name Flags
operator
i
end
public void sort(java.util.Comparator<? super E>);
descriptor: (Ljava/util/Comparator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
aload 1
iconst_0
aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
arraylength
invokevirtual java.util.concurrent.CopyOnWriteArrayList.sortRange:(Ljava/util/Comparator;II)V
2: aload 2
monitorexit
3: goto 6
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.util.Comparator java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 7 1 c Ljava/util/Comparator<-TE;>;
Exception table:
from to target type
1 3 4 any
4 5 4 any
Signature: (Ljava/util/Comparator<-TE;>;)V
MethodParameters:
Name Flags
c
void sortRange(java.util.Comparator<? super E>, int, );
descriptor: (Ljava/util/Comparator;II)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
invokevirtual java.lang.Object[].clone:()Ljava/lang/Object;
checkcast java.lang.Object[]
astore 4
start local 4 1: aload 4
iload 2
iload 3
aload 1
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;IILjava/util/Comparator;)V
2: aload 0
aload 4
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)V
3: return
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 Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 4 1 c Ljava/util/Comparator<-TE;>;
0 4 2 i I
0 4 3 end I
1 4 4 es [Ljava/lang/Object;
Signature: (Ljava/util/Comparator<-TE;>;II)V
MethodParameters:
Name Flags
c
i
end
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectOutputStream.defaultWriteObject:()V
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 2: aload 1
aload 2
arraylength
invokevirtual java.io.ObjectOutputStream.writeInt:(I)V
3: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.io.ObjectOutputStream java.lang.Object[] top int int java.lang.Object[]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: aload 1
aload 3
invokevirtual java.io.ObjectOutputStream.writeObject:(Ljava/lang/Object;)V
end local 3 6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 4
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 9 1 s Ljava/io/ObjectOutputStream;
2 9 2 es [Ljava/lang/Object;
5 6 3 element Ljava/lang/Object;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.defaultReadObject:()V
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.resetLock:()V
2: aload 1
invokevirtual java.io.ObjectInputStream.readInt:()I
istore 2
start local 2 3: invokestatic jdk.internal.access.SharedSecrets.getJavaObjectInputStreamAccess:()Ljdk/internal/access/JavaObjectInputStreamAccess;
aload 1
ldc [Ljava/lang/Object;
iload 2
invokeinterface jdk.internal.access.JavaObjectInputStreamAccess.checkArray:(Ljava/io/ObjectInputStream;Ljava/lang/Class;I)V
4: iload 2
anewarray java.lang.Object
astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: goto 9
7: StackMap locals: int java.lang.Object[] int
StackMap stack:
aload 3
iload 4
aload 1
invokevirtual java.io.ObjectInputStream.readObject:()Ljava/lang/Object;
aastore
8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 2
if_icmplt 7
end local 4 10: aload 0
aload 3
invokevirtual java.util.concurrent.CopyOnWriteArrayList.setArray:([Ljava/lang/Object;)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 Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 12 1 s Ljava/io/ObjectInputStream;
3 12 2 len I
5 12 3 es [Ljava/lang/Object;
6 10 4 i I
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
s
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.util.List
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast java.util.List
astore 2
start local 2 5: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 6: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 11
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.util.List java.util.Iterator top int int java.lang.Object[]
StackMap stack:
7: aload 7
iload 5
aaload
astore 4
start local 4 8: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 9
aload 4
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 10
9: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.util.List java.util.Iterator java.lang.Object int int java.lang.Object[]
StackMap stack:
iconst_0
ireturn
end local 4 10: StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.util.List java.util.Iterator top int int java.lang.Object[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
iload 6
if_icmplt 7
12: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 13
iconst_0
goto 14
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.Object java.util.List java.util.Iterator
StackMap stack:
13: iconst_1
StackMap locals:
StackMap stack: int
14: ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 15 1 o Ljava/lang/Object;
5 15 2 list Ljava/util/List<*>;
6 15 3 it Ljava/util/Iterator<*>;
8 10 4 element Ljava/lang/Object;
MethodParameters:
Name Flags
o
private static int hashCodeOfRange(java.lang.Object[], int, int);
descriptor: ([Ljava/lang/Object;II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
istore 3
start local 3 1: iload 1
istore 4
start local 4 2: goto 8
3: StackMap locals: int int
StackMap stack:
aload 0
iload 4
aaload
astore 5
start local 5 4: bipush 31
iload 3
imul
aload 5
ifnonnull 5
iconst_0
goto 6
StackMap locals: java.lang.Object[] int int int int java.lang.Object
StackMap stack: int
5: aload 5
invokevirtual java.lang.Object.hashCode:()I
StackMap locals: java.lang.Object[] int int int int java.lang.Object
StackMap stack: int int
6: iadd
istore 3
end local 5 7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 2
if_icmplt 3
end local 4 9: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 es [Ljava/lang/Object;
0 10 1 from I
0 10 2 to I
1 10 3 hashCode I
2 9 4 i I
4 7 5 x Ljava/lang/Object;
MethodParameters:
Name Flags
es
from
to
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 1
start local 1 1: aload 1
iconst_0
aload 1
arraylength
invokestatic java.util.concurrent.CopyOnWriteArrayList.hashCodeOfRange:([Ljava/lang/Object;II)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
1 2 1 es [Ljava/lang/Object;
public java.util.Iterator<E> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.util.concurrent.CopyOnWriteArrayList$COWIterator
dup
aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
iconst_0
invokespecial java.util.concurrent.CopyOnWriteArrayList$COWIterator.<init>:([Ljava/lang/Object;I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
Signature: ()Ljava/util/Iterator<TE;>;
public java.util.ListIterator<E> listIterator();
descriptor: ()Ljava/util/ListIterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.util.concurrent.CopyOnWriteArrayList$COWIterator
dup
aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
iconst_0
invokespecial java.util.concurrent.CopyOnWriteArrayList$COWIterator.<init>:([Ljava/lang/Object;I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
Signature: ()Ljava/util/ListIterator<TE;>;
public java.util.ListIterator<E> listIterator(int);
descriptor: (I)Ljava/util/ListIterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
arraylength
istore 3
start local 3 2: iload 1
iflt 3
iload 1
iload 3
if_icmple 4
3: StackMap locals: java.lang.Object[] int
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
iload 1
iload 3
invokestatic java.util.concurrent.CopyOnWriteArrayList.outOfBounds:(II)Ljava/lang/String;
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.util.concurrent.CopyOnWriteArrayList$COWIterator
dup
aload 2
iload 1
invokespecial java.util.concurrent.CopyOnWriteArrayList$COWIterator.<init>:([Ljava/lang/Object;I)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 5 1 index I
1 5 2 es [Ljava/lang/Object;
2 5 3 len I
Signature: (I)Ljava/util/ListIterator<TE;>;
MethodParameters:
Name Flags
index
public java.util.Spliterator<E> spliterator();
descriptor: ()Ljava/util/Spliterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
sipush 1040
1: invokestatic java.util.Spliterators.spliterator:([Ljava/lang/Object;I)Ljava/util/Spliterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
Signature: ()Ljava/util/Spliterator<TE;>;
public java.util.List<E> subList(int, int);
descriptor: (II)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.util.concurrent.CopyOnWriteArrayList.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
invokevirtual java.util.concurrent.CopyOnWriteArrayList.getArray:()[Ljava/lang/Object;
astore 4
start local 4 2: aload 4
arraylength
istore 5
start local 5 3: iload 2
iload 1
isub
istore 6
start local 6 4: iload 1
iflt 5
iload 2
iload 5
if_icmpgt 5
iload 6
ifge 6
5: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int int java.lang.Object java.lang.Object[] int int
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
new java.util.concurrent.CopyOnWriteArrayList$COWSubList
dup
aload 0
aload 4
iload 1
iload 6
invokespecial java.util.concurrent.CopyOnWriteArrayList$COWSubList.<init>:(Ljava/util/concurrent/CopyOnWriteArrayList;[Ljava/lang/Object;II)V
aload 3
monitorexit
7: areturn
end local 6 end local 5 end local 4 8: StackMap locals: java.util.concurrent.CopyOnWriteArrayList int int java.lang.Object
StackMap stack: java.lang.Throwable
aload 3
monitorexit
9: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
0 10 1 fromIndex I
0 10 2 toIndex I
2 8 4 es [Ljava/lang/Object;
3 8 5 len I
4 8 6 size I
Exception table:
from to target type
1 7 8 any
8 9 8 any
Signature: (II)Ljava/util/List<TE;>;
MethodParameters:
Name Flags
fromIndex
toIndex
private void resetLock();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
java/util/concurrent/CopyOnWriteArrayList.lambda$2()Ljava/lang/reflect/Field; (6)
()Ljava/lang/reflect/Field;
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.reflect.Field
astore 1
start local 1 2: aload 1
aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
invokevirtual java.lang.reflect.Field.set:(Ljava/lang/Object;Ljava/lang/Object;)V
3: goto 6
StackMap locals: java.util.concurrent.CopyOnWriteArrayList java.lang.reflect.Field
StackMap stack: java.lang.IllegalAccessException
4: astore 2
start local 2 5: new java.lang.Error
dup
aload 2
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/CopyOnWriteArrayList<TE;>;
2 7 1 lockField Ljava/lang/reflect/Field;
5 6 2 e Ljava/lang/IllegalAccessException;
Exception table:
from to target type
2 3 4 Class java.lang.IllegalAccessException
private static boolean lambda$0(java.util.Collection, java.lang.Object);
descriptor: (Ljava/util/Collection;Ljava/lang/Object;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 e TE;
private static boolean lambda$1(java.util.Collection, java.lang.Object);
descriptor: (Ljava/util/Collection;Ljava/lang/Object;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 e TE;
private static java.lang.reflect.Field lambda$2();
descriptor: ()Ljava/lang/reflect/Field;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: ldc Ljava/util/concurrent/CopyOnWriteArrayList;
1: ldc "lock"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
2: astore 0
start local 0 3: aload 0
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
4: aload 0
5: areturn
end local 0 6: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 0
start local 0 7: new java.lang.Error
dup
aload 0
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
3 6 0 f Ljava/lang/reflect/Field;
7 8 0 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
0 5 6 Class java.lang.ReflectiveOperationException
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/List<TE;>;Ljava/util/RandomAccess;Ljava/lang/Cloneable;Ljava/io/Serializable;
SourceFile: "CopyOnWriteArrayList.java"
NestMembers:
java.util.concurrent.CopyOnWriteArrayList$COWIterator java.util.concurrent.CopyOnWriteArrayList$COWSubList java.util.concurrent.CopyOnWriteArrayList$COWSubListIterator
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
final COWIterator = java.util.concurrent.CopyOnWriteArrayList$COWIterator of java.util.concurrent.CopyOnWriteArrayList
private COWSubList = java.util.concurrent.CopyOnWriteArrayList$COWSubList of java.util.concurrent.CopyOnWriteArrayList
private COWSubListIterator = java.util.concurrent.CopyOnWriteArrayList$COWSubListIterator of java.util.concurrent.CopyOnWriteArrayList