final class org.jruby.util.collections.ConcurrentWeakHashMap$Segment<K, V> extends java.util.concurrent.locks.ReentrantLock implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.jruby.util.collections.ConcurrentWeakHashMap$Segment
super_class: java.util.concurrent.locks.ReentrantLock
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2249069246763182397
volatile transient int count;
descriptor: I
flags: (0x00c0) ACC_VOLATILE, ACC_TRANSIENT
transient int modCount;
descriptor: I
flags: (0x0080) ACC_TRANSIENT
transient int threshold;
descriptor: I
flags: (0x0080) ACC_TRANSIENT
volatile transient org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry<K, V>[] table;
descriptor: [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
flags: (0x00c0) ACC_VOLATILE, ACC_TRANSIENT
Signature: [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
final float loadFactor;
descriptor: F
flags: (0x0010) ACC_FINAL
volatile transient java.lang.ref.ReferenceQueue<K> refQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x00c0) ACC_VOLATILE, ACC_TRANSIENT
Signature: Ljava/lang/ref/ReferenceQueue<TK;>;
void <init>(int, float);
descriptor: (IF)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
1: aload 0
fload 2
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.loadFactor:F
2: aload 0
iload 1
invokestatic org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.newArray:(I)[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.setTable:([Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 4 1 initialCapacity I
0 4 2 lf F
MethodParameters:
Name Flags
initialCapacity
lf
static final <K, V> org.jruby.util.collections.ConcurrentWeakHashMap$Segment<K, V>[] newArray(int);
descriptor: (I)[Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
anewarray org.jruby.util.collections.ConcurrentWeakHashMap$Segment
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 i I
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>(I)[Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
MethodParameters:
Name Flags
i
void setTable(org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry<K, V>[]);
descriptor: ([Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
arraylength
i2f
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.loadFactor:F
fmul
f2i
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.threshold:I
1: aload 0
aload 1
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.table:[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
2: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.refQueue:Ljava/lang/ref/ReferenceQueue;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 4 1 newTable [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
Signature: ([Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;)V
MethodParameters:
Name Flags
newTable
org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry<K, V> getFirst(int);
descriptor: (I)Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.table:[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 2
start local 2 1: aload 2
iload 1
aload 2
arraylength
iconst_1
isub
iand
aaload
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 2 1 hash I
1 2 2 tab [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
Signature: (I)Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
MethodParameters:
Name Flags
hash
V readValueUnderLock(org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry<K, V>);
descriptor: (Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=1, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.lock:()V
1: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.removeStale:()V
2: aload 1
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
astore 3
3: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
4: aload 3
areturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
6: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 8 1 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
Exception table:
from to target type
1 3 5 any
Signature: (Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;)TV;
MethodParameters:
Name Flags
e
V get(, );
descriptor: (Ljava/lang/Object;I)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
ifeq 10
1: aload 0
iload 2
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.getFirst:(I)Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 3
start local 3 2: goto 9
3: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 3
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 2
if_icmpne 8
aload 1
aload 3
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 8
4: aload 3
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
astore 4
start local 4 5: aload 4
ifnull 7
6: aload 4
areturn
7: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 3
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.readValueUnderLock:(Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;)Ljava/lang/Object;
areturn
end local 4 8: StackMap locals:
StackMap stack:
aload 3
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 3
9: StackMap locals:
StackMap stack:
aload 3
ifnonnull 3
end local 3 10: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 11 1 key Ljava/lang/Object;
0 11 2 hash I
2 10 3 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
5 8 4 v TV;
Signature: (Ljava/lang/Object;I)TV;
MethodParameters:
Name Flags
key
hash
boolean containsKey(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)Z
flags: (0x0000)
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
ifeq 7
1: aload 0
iload 2
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.getFirst:(I)Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 3
start local 3 2: goto 6
3: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 3
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 2
if_icmpne 5
aload 1
aload 3
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
aload 3
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 3
6: StackMap locals:
StackMap stack:
aload 3
ifnonnull 3
end local 3 7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 8 1 key Ljava/lang/Object;
0 8 2 hash I
2 7 3 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
MethodParameters:
Name Flags
key
hash
boolean containsValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0000)
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
ifeq 16
1: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.table:[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 2
start local 2 2: aload 2
arraylength
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 15
5: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int int
StackMap stack:
aload 2
iload 4
aaload
astore 5
start local 5 6: goto 13
7: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 5
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
astore 6
start local 6 8: aload 6
ifnonnull 10
9: aload 0
aload 5
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.readValueUnderLock:(Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;)Ljava/lang/Object;
astore 6
10: StackMap locals: java.lang.Object
StackMap stack:
aload 1
aload 6
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 12
11: iconst_1
ireturn
end local 6 12: StackMap locals:
StackMap stack:
aload 5
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 5
StackMap locals:
StackMap stack:
13: aload 5
ifnonnull 7
end local 5 14: iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
iload 3
if_icmplt 5
end local 4 end local 3 end local 2 16: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 17 1 value Ljava/lang/Object;
2 16 2 tab [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
3 16 3 len I
4 16 4 i I
6 14 5 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
8 12 6 v TV;
MethodParameters:
Name Flags
value
boolean replace(K, int, V, );
descriptor: (Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0000)
Code:
stack=2, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.lock:()V
1: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.removeStale:()V
2: aload 0
iload 2
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.getFirst:(I)Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 5
start local 5 3: goto 5
4: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 5
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 5
5: StackMap locals:
StackMap stack:
aload 5
ifnull 6
aload 5
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 2
if_icmpne 4
aload 1
aload 5
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 4
6: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 7: aload 5
ifnull 10
aload 3
aload 5
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 10
8: iconst_1
istore 6
9: aload 5
aload 4
putfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
10: StackMap locals: int
StackMap stack:
iload 6
istore 8
11: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
12: iload 8
ireturn
end local 6 end local 5 13: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment java.lang.Object int java.lang.Object java.lang.Object
StackMap stack: java.lang.Throwable
astore 7
14: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
15: aload 7
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 16 1 key TK;
0 16 2 hash I
0 16 3 oldValue TV;
0 16 4 newValue TV;
3 13 5 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
7 13 6 replaced Z
Exception table:
from to target type
1 11 13 any
Signature: (TK;ITV;TV;)Z
MethodParameters:
Name Flags
key
hash
oldValue
newValue
V replace(K, int, );
descriptor: (Ljava/lang/Object;ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=2, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.lock:()V
1: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.removeStale:()V
2: aload 0
iload 2
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.getFirst:(I)Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 4
start local 4 3: goto 5
4: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 4
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 4
5: StackMap locals:
StackMap stack:
aload 4
ifnull 6
aload 4
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 2
if_icmpne 4
aload 1
aload 4
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 4
6: StackMap locals:
StackMap stack:
aconst_null
astore 5
start local 5 7: aload 4
ifnull 10
8: aload 4
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
astore 5
9: aload 4
aload 3
putfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
10: StackMap locals: java.lang.Object
StackMap stack:
aload 5
astore 7
11: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
12: aload 7
areturn
end local 5 end local 4 13: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment java.lang.Object int java.lang.Object
StackMap stack: java.lang.Throwable
astore 6
14: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
15: aload 6
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 16 1 key TK;
0 16 2 hash I
0 16 3 newValue TV;
3 13 4 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
7 13 5 oldValue TV;
Exception table:
from to target type
1 11 13 any
Signature: (TK;ITV;)TV;
MethodParameters:
Name Flags
key
hash
newValue
V put(K, int, V, );
descriptor: (Ljava/lang/Object;ILjava/lang/Object;Z)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=9, locals=13, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.lock:()V
1: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.removeStale:()V
2: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
istore 5
start local 5 3: iload 5
iinc 5 1
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.threshold:I
if_icmple 7
4: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.rehash:()I
istore 6
start local 6 5: iload 6
ifle 7
6: aload 0
iload 5
iload 6
isub
dup
istore 5
iconst_1
isub
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
end local 6 7: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.table:[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 6
start local 6 8: iload 2
aload 6
arraylength
iconst_1
isub
iand
istore 7
start local 7 9: aload 6
iload 7
aaload
astore 8
start local 8 10: aload 8
astore 9
start local 9 11: goto 13
12: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment java.lang.Object int java.lang.Object int int org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 9
13: StackMap locals:
StackMap stack:
aload 9
ifnull 14
aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 2
if_icmpne 12
aload 1
aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 12
14: StackMap locals:
StackMap stack:
aload 9
ifnull 19
15: aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
astore 10
start local 10 16: iload 4
ifne 23
17: aload 9
aload 3
putfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
18: goto 23
end local 10 19: StackMap locals:
StackMap stack:
aconst_null
astore 10
start local 10 20: aload 0
dup
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.modCount:I
iconst_1
iadd
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.modCount:I
21: aload 6
iload 7
new org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
dup
aload 1
iload 2
aload 8
aload 3
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.refQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.<init>:(Ljava/lang/Object;ILorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
aastore
22: aload 0
iload 5
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
23: StackMap locals: java.lang.Object
StackMap stack:
aload 10
astore 12
24: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
25: aload 12
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 26: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment java.lang.Object int java.lang.Object int
StackMap stack: java.lang.Throwable
astore 11
27: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
28: aload 11
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 29 1 key TK;
0 29 2 hash I
0 29 3 value TV;
0 29 4 onlyIfAbsent Z
3 26 5 c I
5 7 6 reduced I
8 26 6 tab [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
9 26 7 index I
10 26 8 first Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
11 26 9 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
16 19 10 oldValue TV;
20 26 10 oldValue TV;
Exception table:
from to target type
1 24 26 any
Signature: (TK;ITV;Z)TV;
MethodParameters:
Name Flags
key
hash
value
onlyIfAbsent
int rehash();
descriptor: ()I
flags: (0x0000)
Code:
stack=9, locals=16, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.table:[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 1
start local 1 1: aload 1
arraylength
istore 2
start local 2 2: iload 2
ldc 1073741824
if_icmplt 4
3: iconst_0
ireturn
4: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int
StackMap stack:
iload 2
iconst_1
ishl
invokestatic org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.newArray:(I)[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 3
start local 3 5: aload 0
aload 3
arraylength
i2f
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.loadFactor:F
fmul
f2i
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.threshold:I
6: aload 3
arraylength
iconst_1
isub
istore 4
start local 4 7: iconst_0
istore 5
start local 5 8: iconst_0
istore 6
start local 6 9: goto 39
10: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int int int
StackMap stack:
aload 1
iload 6
aaload
astore 7
start local 7 11: aload 7
ifnull 38
12: aload 7
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 8
start local 8 13: aload 7
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 4
iand
istore 9
start local 9 14: aload 8
ifnonnull 16
15: aload 3
iload 9
aload 7
aastore
goto 38
16: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry int
StackMap stack:
aload 7
astore 10
start local 10 17: iload 9
istore 11
start local 11 18: aload 8
astore 12
start local 12 19: goto 25
20: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry int org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 12
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 4
iand
istore 13
start local 13 21: iload 13
iload 11
if_icmpeq 24
22: iload 13
istore 11
23: aload 12
astore 10
end local 13 24: StackMap locals:
StackMap stack:
aload 12
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 12
StackMap locals:
StackMap stack:
25: aload 12
ifnonnull 20
end local 12 26: aload 3
iload 11
aload 10
aastore
27: aload 7
astore 12
start local 12 28: goto 37
29: StackMap locals:
StackMap stack:
aload 12
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
astore 13
start local 13 30: aload 13
ifnonnull 33
31: iinc 5 1
32: goto 36
33: StackMap locals: java.lang.Object
StackMap stack:
aload 12
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 4
iand
istore 14
start local 14 34: aload 3
iload 14
aaload
astore 15
start local 15 35: aload 3
iload 14
new org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
dup
aload 13
aload 12
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
aload 15
aload 12
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.refQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.<init>:(Ljava/lang/Object;ILorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
aastore
end local 15 end local 14 end local 13 36: StackMap locals:
StackMap stack:
aload 12
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 12
StackMap locals:
StackMap stack:
37: aload 12
aload 10
if_acmpne 29
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 38: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int int int
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
39: iload 6
iload 2
if_icmplt 10
end local 6 40: aload 0
aload 3
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.table:[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
41: iload 5
ireturn
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 42 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
1 42 1 oldTable [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
2 42 2 oldCapacity I
5 42 3 newTable [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
7 42 4 sizeMask I
8 42 5 reduce I
9 40 6 i I
11 38 7 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
13 38 8 next Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
14 38 9 idx I
17 38 10 lastRun Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
18 38 11 lastIdx I
19 26 12 last Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
21 24 13 k I
28 38 12 p Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
30 36 13 key TK;
34 36 14 k I
35 36 15 n Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
V remove(, int, , );
descriptor: (Ljava/lang/Object;ILjava/lang/Object;Z)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=7, locals=17, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.lock:()V
1: iload 4
ifne 3
2: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.removeStale:()V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
iconst_1
isub
istore 5
start local 5 4: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.table:[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 6
start local 6 5: iload 2
aload 6
arraylength
iconst_1
isub
iand
istore 7
start local 7 6: aload 6
iload 7
aaload
astore 8
start local 8 7: aload 8
astore 9
start local 9 8: goto 10
9: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment java.lang.Object int java.lang.Object int int org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 9
10: StackMap locals:
StackMap stack:
aload 9
ifnull 12
iload 4
ifeq 11
aload 1
aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
if_acmpeq 12
11: StackMap locals:
StackMap stack:
aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
iload 2
if_icmpne 9
aload 1
aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 9
12: StackMap locals:
StackMap stack:
aconst_null
astore 10
start local 10 13: aload 9
ifnull 30
14: aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
astore 11
start local 11 15: aload 3
ifnull 16
aload 3
aload 11
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 30
16: StackMap locals: java.lang.Object java.lang.Object
StackMap stack:
aload 11
astore 10
17: aload 0
dup
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.modCount:I
iconst_1
iadd
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.modCount:I
18: aload 9
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 12
start local 12 19: aload 8
astore 13
start local 13 20: goto 27
21: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
StackMap stack:
aload 13
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.keyRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
astore 14
start local 14 22: aload 14
ifnonnull 25
23: iinc 5 -1
24: goto 26
25: StackMap locals: java.lang.Object
StackMap stack:
new org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry
dup
aload 14
aload 13
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.hash:I
aload 12
aload 13
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.value:Ljava/lang/Object;
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.refQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.<init>:(Ljava/lang/Object;ILorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 12
end local 14 26: StackMap locals:
StackMap stack:
aload 13
getfield org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry.next:Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 13
StackMap locals:
StackMap stack:
27: aload 13
aload 9
if_acmpne 21
end local 13 28: aload 6
iload 7
aload 12
aastore
29: aload 0
iload 5
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
end local 12 end local 11 30: StackMap locals:
StackMap stack:
aload 10
astore 16
31: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
32: aload 16
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 33: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment java.lang.Object int java.lang.Object int
StackMap stack: java.lang.Throwable
astore 15
34: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
35: aload 15
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
0 36 1 key Ljava/lang/Object;
0 36 2 hash I
0 36 3 value Ljava/lang/Object;
0 36 4 weakRemove Z
4 33 5 c I
5 33 6 tab [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
6 33 7 index I
7 33 8 first Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
8 33 9 e Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
13 33 10 oldValue TV;
15 30 11 v TV;
19 30 12 newFirst Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
20 28 13 p Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry<TK;TV;>;
22 26 14 pKey TK;
Exception table:
from to target type
1 31 33 any
Signature: (Ljava/lang/Object;ILjava/lang/Object;Z)TV;
MethodParameters:
Name Flags
key
hash
value
weakRemove
void removeStale();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=1
start local 0 0: goto 2
start local 1 1: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$WeakKeyReference
StackMap stack:
aload 0
aload 1
aload 1
getfield org.jruby.util.collections.ConcurrentWeakHashMap$WeakKeyReference.hash:I
aconst_null
iconst_1
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.remove:(Ljava/lang/Object;ILjava/lang/Object;Z)Ljava/lang/Object;
pop
end local 1 2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.refQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast org.jruby.util.collections.ConcurrentWeakHashMap$WeakKeyReference
dup
astore 1
start local 1 3: ifnonnull 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
1 2 1 ref Lorg/jruby/util/collections/ConcurrentWeakHashMap$WeakKeyReference<TK;>;
3 5 1 ref Lorg/jruby/util/collections/ConcurrentWeakHashMap$WeakKeyReference<TK;>;
void clear();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
ifeq 16
1: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.lock:()V
2: aload 0
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.table:[Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
astore 1
start local 1 3: iconst_0
istore 2
start local 2 4: goto 7
5: StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry[] int
StackMap stack:
aload 1
iload 2
aconst_null
aastore
6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 1
arraylength
if_icmplt 5
end local 2 8: aload 0
dup
getfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.modCount:I
iconst_1
iadd
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.modCount:I
9: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.refQueue:Ljava/lang/ref/ReferenceQueue;
10: aload 0
iconst_0
putfield org.jruby.util.collections.ConcurrentWeakHashMap$Segment.count:I
end local 1 11: goto 15
StackMap locals: org.jruby.util.collections.ConcurrentWeakHashMap$Segment
StackMap stack: java.lang.Throwable
12: astore 3
13: aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
14: aload 3
athrow
15: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.collections.ConcurrentWeakHashMap$Segment.unlock:()V
16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/jruby/util/collections/ConcurrentWeakHashMap$Segment<TK;TV;>;
3 11 1 tab [Lorg/jruby/util/collections/ConcurrentWeakHashMap$HashEntry;
4 8 2 i I
Exception table:
from to target type
2 12 12 any
}
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>Ljava/util/concurrent/locks/ReentrantLock;Ljava/io/Serializable;
SourceFile: "ConcurrentWeakHashMap.java"
NestHost: org.jruby.util.collections.ConcurrentWeakHashMap
InnerClasses:
final HashEntry = org.jruby.util.collections.ConcurrentWeakHashMap$HashEntry of org.jruby.util.collections.ConcurrentWeakHashMap
final Segment = org.jruby.util.collections.ConcurrentWeakHashMap$Segment of org.jruby.util.collections.ConcurrentWeakHashMap
final WeakKeyReference = org.jruby.util.collections.ConcurrentWeakHashMap$WeakKeyReference of org.jruby.util.collections.ConcurrentWeakHashMap