class org.jruby.javasupport.util.ObjectProxyCache$Segment<T, A> extends java.util.concurrent.locks.ReentrantLock
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.javasupport.util.ObjectProxyCache$Segment
super_class: java.util.concurrent.locks.ReentrantLock
{
final org.jruby.javasupport.util.ObjectProxyCache<T, A> cache;
descriptor: Lorg/jruby/javasupport/util/ObjectProxyCache;
flags: (0x0010) ACC_FINAL
Signature: Lorg/jruby/javasupport/util/ObjectProxyCache<TT;TA;>;
final java.lang.ref.ReferenceQueue<java.lang.Object> referenceQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0010) ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
volatile org.jruby.javasupport.util.ObjectProxyCache$Entry<T>[] entryTable;
descriptor: [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
flags: (0x0040) ACC_VOLATILE
Signature: [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
int tableSize;
descriptor: I
flags: (0x0000)
int threshold;
descriptor: I
flags: (0x0000)
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/jruby/javasupport/util/ObjectProxyCache;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jruby.javasupport.util.ObjectProxyCache$Segment.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int, org.jruby.javasupport.util.ObjectProxyCache<T, A>);
descriptor: (ILorg/jruby/javasupport/util/ObjectProxyCache;)V
flags: (0x0000)
Code:
stack=3, 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
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.referenceQueue:Ljava/lang/ref/ReferenceQueue;
2: aload 0
iload 1
i2f
ldc 0.75
fmul
f2i
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.threshold:I
3: aload 0
iload 1
invokestatic org.jruby.javasupport.util.ObjectProxyCache$Entry.newArray:(I)[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
4: aload 0
aload 2
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.cache:Lorg/jruby/javasupport/util/ObjectProxyCache;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
0 6 1 capacity I
0 6 2 cache Lorg/jruby/javasupport/util/ObjectProxyCache<TT;TA;>;
Signature: (ILorg/jruby/javasupport/util/ObjectProxyCache<TT;TA;>;)V
MethodParameters:
Name Flags
capacity
cache
private void expunge();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 1
start local 1 1: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.referenceQueue:Ljava/lang/ref/ReferenceQueue;
astore 2
start local 2 2: goto 11
start local 3 3: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Entry[] java.lang.ref.ReferenceQueue org.jruby.javasupport.util.ObjectProxyCache$EntryRef
StackMap stack:
aload 1
aload 3
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.hash:()I
dup
istore 4
start local 4 4: aload 1
arraylength
iconst_1
isub
iand
aaload
astore 5
start local 5 5: goto 10
6: StackMap locals: int org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
iload 4
aload 5
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
if_icmpne 9
aload 3
aload 5
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.objectRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
if_acmpeq 7
aload 3
aload 5
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.proxyRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
if_acmpne 9
7: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 4
aload 5
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.remove:([Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;ILorg/jruby/javasupport/util/ObjectProxyCache$Entry;)V
8: goto 11
9: StackMap locals:
StackMap stack:
aload 5
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 5
StackMap locals:
StackMap stack:
10: aload 5
ifnonnull 6
end local 5 end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast org.jruby.javasupport.util.ObjectProxyCache$EntryRef
dup
astore 3
start local 3 12: ifnonnull 3
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
1 14 1 table [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
2 14 2 queue Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
3 11 3 ref Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
12 14 3 ref Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
4 11 4 hash I
5 11 5 e Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
private void remove(org.jruby.javasupport.util.ObjectProxyCache$Entry<T>[], int, org.jruby.javasupport.util.ObjectProxyCache$Entry<T>);
descriptor: ([Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;ILorg/jruby/javasupport/util/ObjectProxyCache$Entry;)V
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: iload 2
aload 1
arraylength
iconst_1
isub
iand
istore 4
start local 4 1: aload 1
iload 4
aaload
astore 5
start local 5 2: aload 5
astore 6
start local 6 3: goto 16
4: StackMap locals: int org.jruby.javasupport.util.ObjectProxyCache$Entry org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
aload 6
aload 3
if_acmpne 15
5: aload 6
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 7
start local 7 6: aload 5
astore 8
start local 8 7: goto 10
8: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Entry org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
new org.jruby.javasupport.util.ObjectProxyCache$Entry
dup
aload 8
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.objectRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
aload 8
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
aload 8
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.proxyRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
aload 7
invokespecial org.jruby.javasupport.util.ObjectProxyCache$Entry.<init>:(Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;ILorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;)V
astore 7
9: aload 8
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 8
StackMap locals:
StackMap stack:
10: aload 8
aload 6
if_acmpne 8
end local 8 11: aload 1
iload 4
aload 7
aastore
12: aload 0
dup
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.tableSize:I
iconst_1
isub
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.tableSize:I
13: aload 0
aload 1
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
14: return
end local 7 15: StackMap locals:
StackMap stack:
aload 6
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 6
StackMap locals:
StackMap stack:
16: aload 6
ifnonnull 4
end local 6 17: return
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 18 0 this Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
0 18 1 table [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
0 18 2 hash I
0 18 3 e Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
1 18 4 index I
2 18 5 first Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
3 17 6 n Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
6 15 7 newFirst Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
7 11 8 p Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
Signature: ([Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;ILorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;)V
MethodParameters:
Name Flags
table
hash
e
private int count();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 8
StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment int top int int org.jruby.javasupport.util.ObjectProxyCache$Entry[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: goto 6
4: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment int org.jruby.javasupport.util.ObjectProxyCache$Entry int int org.jruby.javasupport.util.ObjectProxyCache$Entry[]
StackMap stack:
iinc 1 1
5: aload 2
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 2
6: StackMap locals:
StackMap stack:
aload 2
ifnonnull 4
end local 2 7: iinc 3 1
StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment int top int int org.jruby.javasupport.util.ObjectProxyCache$Entry[]
StackMap stack:
8: iload 3
iload 4
if_icmplt 2
9: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
1 10 1 count I
3 7 2 e Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
private org.jruby.javasupport.util.ObjectProxyCache$Entry<T>[] rehash();
descriptor: ()[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=15, args_size=1
start local 0 0: getstatic org.jruby.javasupport.util.ObjectProxyCache$Segment.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.tableSize:I
aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.count:()I
if_icmpeq 1
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "tableSize "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.tableSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " != count() "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.count:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 1
start local 1 2: aload 1
arraylength
dup
istore 2
start local 2 3: ldc 1073741824
if_icmplt 5
4: aload 1
areturn
5: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Entry[] int
StackMap stack:
iload 2
iconst_1
ishl
istore 3
start local 3 6: iload 3
iconst_1
isub
istore 4
start local 4 7: aload 0
iload 3
i2f
ldc 0.75
fmul
f2i
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.threshold:I
8: iload 3
invokestatic org.jruby.javasupport.util.ObjectProxyCache$Entry.newArray:(I)[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 5
start local 5 9: iload 2
istore 7
start local 7 10: goto 36
11: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment org.jruby.javasupport.util.ObjectProxyCache$Entry[] int int int org.jruby.javasupport.util.ObjectProxyCache$Entry[] top int
StackMap stack:
aload 1
iload 7
aaload
dup
astore 6
start local 6 12: ifnull 36
13: aload 6
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
iload 4
iand
istore 8
start local 8 14: aload 6
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
dup
astore 9
start local 9 15: ifnonnull 18
16: aload 5
iload 8
aload 6
aastore
17: goto 36
18: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment org.jruby.javasupport.util.ObjectProxyCache$Entry[] int int int org.jruby.javasupport.util.ObjectProxyCache$Entry[] org.jruby.javasupport.util.ObjectProxyCache$Entry int int org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
iload 8
istore 10
start local 10 19: aload 6
astore 11
start local 11 20: aload 9
astore 12
start local 12 21: goto 27
22: StackMap locals: int org.jruby.javasupport.util.ObjectProxyCache$Entry org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
aload 12
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
iload 4
iand
dup
istore 13
start local 13 23: iload 10
if_icmpeq 26
24: iload 13
istore 10
25: aload 12
astore 11
end local 13 26: StackMap locals:
StackMap stack:
aload 12
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 12
StackMap locals:
StackMap stack:
27: aload 12
ifnonnull 22
end local 12 28: aload 5
iload 10
aload 11
aastore
29: aload 6
astore 12
start local 12 30: goto 35
31: StackMap locals:
StackMap stack:
aload 12
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
iload 4
iand
istore 13
start local 13 32: new org.jruby.javasupport.util.ObjectProxyCache$Entry
dup
aload 12
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.objectRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
aload 12
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
aload 12
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.proxyRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
aload 5
iload 13
aaload
invokespecial org.jruby.javasupport.util.ObjectProxyCache$Entry.<init>:(Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;ILorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;)V
astore 14
start local 14 33: aload 5
iload 13
aload 14
aastore
end local 14 end local 13 34: aload 12
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 12
StackMap locals:
StackMap stack:
35: aload 12
aload 11
if_acmpne 31
end local 12 end local 11 end local 10 end local 9 end local 8 end local 6 36: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment org.jruby.javasupport.util.ObjectProxyCache$Entry[] int int int org.jruby.javasupport.util.ObjectProxyCache$Entry[] top int
StackMap stack:
iinc 7 -1
iload 7
ifge 11
end local 7 37: aload 0
aload 5
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
38: aload 5
areturn
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 39 0 this Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
2 39 1 oldTable [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
3 39 2 oldCapacity I
6 39 3 newCapacity I
7 39 4 sizeMask I
9 39 5 newTable [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
12 36 6 e Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
10 37 7 i I
14 36 8 idx I
15 36 9 next Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
19 36 10 lastIdx I
20 36 11 lastRun Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
21 28 12 last Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
23 26 13 k I
30 36 12 p Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
32 34 13 k I
33 34 14 m Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
Signature: ()[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
void put(, int, );
descriptor: (Ljava/lang/Object;ILjava/lang/Object;)V
flags: (0x0000)
Code:
stack=8, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.lock:()V
1: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.expunge:()V
2: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.tableSize:I
iconst_1
iadd
dup
istore 5
start local 5 3: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.threshold:I
if_icmple 6
4: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.rehash:()[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 4
start local 4 5: goto 7
end local 4 6: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object top int
StackMap stack:
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 4
start local 4 7: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object org.jruby.javasupport.util.ObjectProxyCache$Entry[] int
StackMap stack:
aload 4
iload 2
aload 4
arraylength
iconst_1
isub
iand
dup
istore 6
start local 6 8: aaload
astore 7
start local 7 9: goto 18
10: StackMap locals: int org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
iload 2
aload 7
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
if_icmpne 17
aload 1
aload 7
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.objectRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.get:()Ljava/lang/Object;
if_acmpne 17
11: aload 3
aload 7
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.proxyRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.get:()Ljava/lang/Object;
if_acmpne 14
12: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.unlock:()V
13: return
14: StackMap locals:
StackMap stack:
aload 0
aload 4
iload 2
aload 7
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.remove:([Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;ILorg/jruby/javasupport/util/ObjectProxyCache$Entry;)V
15: iinc 5 -1
16: goto 19
17: StackMap locals:
StackMap stack:
aload 7
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 7
StackMap locals:
StackMap stack:
18: aload 7
ifnonnull 10
19: StackMap locals:
StackMap stack:
new org.jruby.javasupport.util.ObjectProxyCache$Entry
dup
aload 1
iload 2
aload 3
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.cache:Lorg/jruby/javasupport/util/ObjectProxyCache;
getfield org.jruby.javasupport.util.ObjectProxyCache.referenceType:Lorg/jruby/javasupport/util/ObjectProxyCache$ReferenceType;
aload 4
iload 6
aaload
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.referenceQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.jruby.javasupport.util.ObjectProxyCache$Entry.<init>:(Ljava/lang/Object;ILjava/lang/Object;Lorg/jruby/javasupport/util/ObjectProxyCache$ReferenceType;Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;Ljava/lang/ref/ReferenceQueue;)V
astore 7
20: aload 4
iload 6
aload 7
aastore
21: aload 0
iload 5
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.tableSize:I
22: aload 0
aload 4
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
end local 7 end local 6 end local 5 end local 4 23: goto 27
StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object
StackMap stack: java.lang.Throwable
24: astore 8
25: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.unlock:()V
26: aload 8
athrow
27: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.unlock:()V
28: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
0 29 1 object Ljava/lang/Object;
0 29 2 hash I
0 29 3 proxy TT;
5 6 4 table [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
7 23 4 table [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
3 23 5 potentialNewSize I
8 23 6 index I
9 23 7 e Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
Exception table:
from to target type
1 12 24 any
14 24 24 any
Signature: (Ljava/lang/Object;ITT;)V
MethodParameters:
Name Flags
object
hash
proxy
T getOrCreate(, int, );
descriptor: (Ljava/lang/Object;ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=8, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
dup
astore 4
start local 4 1: iload 2
aload 4
arraylength
iconst_1
isub
iand
aaload
astore 6
start local 6 2: goto 7
3: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object org.jruby.javasupport.util.ObjectProxyCache$Entry[] top org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
iload 2
aload 6
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
if_icmpne 6
aload 1
aload 6
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.objectRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.get:()Ljava/lang/Object;
if_acmpne 6
4: aload 6
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.proxyRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.get:()Ljava/lang/Object;
dup
astore 5
start local 5 5: ifnull 8
aload 5
areturn
end local 5 6: StackMap locals:
StackMap stack:
aload 6
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 6
StackMap locals:
StackMap stack:
7: aload 6
ifnonnull 3
end local 6 8: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object org.jruby.javasupport.util.ObjectProxyCache$Entry[]
StackMap stack:
aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.lock:()V
9: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.expunge:()V
10: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.tableSize:I
iconst_1
iadd
dup
istore 6
start local 6 11: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.threshold:I
if_icmple 14
12: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.rehash:()[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 4
13: goto 15
14: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object org.jruby.javasupport.util.ObjectProxyCache$Entry[] top int
StackMap stack:
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 4
15: StackMap locals:
StackMap stack:
aload 4
iload 2
aload 4
arraylength
iconst_1
isub
iand
dup
istore 7
start local 7 16: aaload
astore 8
start local 8 17: goto 26
18: StackMap locals: int org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
iload 2
aload 8
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
if_icmpne 25
aload 1
aload 8
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.objectRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.get:()Ljava/lang/Object;
if_acmpne 25
19: aload 8
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.proxyRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.get:()Ljava/lang/Object;
dup
astore 5
start local 5 20: ifnull 22
aload 5
astore 10
21: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.unlock:()V
aload 10
areturn
22: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object org.jruby.javasupport.util.ObjectProxyCache$Entry[] java.lang.Object int int org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
aload 0
aload 4
iload 2
aload 8
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.remove:([Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;ILorg/jruby/javasupport/util/ObjectProxyCache$Entry;)V
23: iinc 6 -1
24: goto 27
end local 5 25: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object org.jruby.javasupport.util.ObjectProxyCache$Entry[] top int int org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
aload 8
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 8
StackMap locals:
StackMap stack:
26: aload 8
ifnonnull 18
27: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.cache:Lorg/jruby/javasupport/util/ObjectProxyCache;
aload 1
aload 3
invokevirtual org.jruby.javasupport.util.ObjectProxyCache.allocateProxy:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 28: new org.jruby.javasupport.util.ObjectProxyCache$Entry
dup
aload 1
iload 2
aload 5
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.cache:Lorg/jruby/javasupport/util/ObjectProxyCache;
getfield org.jruby.javasupport.util.ObjectProxyCache.referenceType:Lorg/jruby/javasupport/util/ObjectProxyCache$ReferenceType;
aload 4
iload 7
aaload
aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.referenceQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.jruby.javasupport.util.ObjectProxyCache$Entry.<init>:(Ljava/lang/Object;ILjava/lang/Object;Lorg/jruby/javasupport/util/ObjectProxyCache$ReferenceType;Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;Ljava/lang/ref/ReferenceQueue;)V
astore 8
29: aload 4
iload 7
aload 8
aastore
30: aload 0
iload 6
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.tableSize:I
31: aload 0
aload 4
putfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
32: aload 5
astore 10
33: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.unlock:()V
34: aload 10
areturn
end local 8 end local 7 end local 6 end local 5 35: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Segment java.lang.Object int java.lang.Object org.jruby.javasupport.util.ObjectProxyCache$Entry[]
StackMap stack: java.lang.Throwable
astore 9
36: aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache$Segment.unlock:()V
37: aload 9
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
0 38 1 object Ljava/lang/Object;
0 38 2 hash I
0 38 3 allocator TA;
1 38 4 table [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
5 6 5 proxy TT;
20 25 5 proxy TT;
28 35 5 proxy TT;
2 8 6 e Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
11 35 6 potentialNewSize I
16 35 7 index I
17 35 8 e Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
Exception table:
from to target type
9 21 35 any
22 33 35 any
Signature: (Ljava/lang/Object;ITA;)TT;
MethodParameters:
Name Flags
object
hash
allocator
T get(, );
descriptor: (Ljava/lang/Object;I)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.javasupport.util.ObjectProxyCache$Segment.entryTable:[Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
dup
astore 3
start local 3 1: iload 2
aload 3
arraylength
iconst_1
isub
iand
aaload
astore 4
start local 4 2: goto 6
3: StackMap locals: org.jruby.javasupport.util.ObjectProxyCache$Entry[] org.jruby.javasupport.util.ObjectProxyCache$Entry
StackMap stack:
iload 2
aload 4
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.hash:I
if_icmpne 5
aload 1
aload 4
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.objectRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.get:()Ljava/lang/Object;
if_acmpne 5
4: aload 4
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.proxyRef:Lorg/jruby/javasupport/util/ObjectProxyCache$EntryRef;
invokeinterface org.jruby.javasupport.util.ObjectProxyCache$EntryRef.get:()Ljava/lang/Object;
areturn
5: StackMap locals:
StackMap stack:
aload 4
getfield org.jruby.javasupport.util.ObjectProxyCache$Entry.next:Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
astore 4
StackMap locals:
StackMap stack:
6: aload 4
ifnonnull 3
end local 4 7: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
0 8 1 object Ljava/lang/Object;
0 8 2 hash I
1 8 3 table [Lorg/jruby/javasupport/util/ObjectProxyCache$Entry;
2 7 4 e Lorg/jruby/javasupport/util/ObjectProxyCache$Entry<TT;>;
Signature: (Ljava/lang/Object;I)TT;
MethodParameters:
Name Flags
object
hash
static final <T, A> org.jruby.javasupport.util.ObjectProxyCache$Segment<T, A>[] newArray(int);
descriptor: (I)[Lorg/jruby/javasupport/util/ObjectProxyCache$Segment;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
anewarray org.jruby.javasupport.util.ObjectProxyCache$Segment
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 size I
Signature: <T:Ljava/lang/Object;A:Ljava/lang/Object;>(I)[Lorg/jruby/javasupport/util/ObjectProxyCache$Segment<TT;TA;>;
MethodParameters:
Name Flags
size
}
Signature: <T:Ljava/lang/Object;A:Ljava/lang/Object;>Ljava/util/concurrent/locks/ReentrantLock;
SourceFile: "ObjectProxyCache.java"
NestHost: org.jruby.javasupport.util.ObjectProxyCache
InnerClasses:
Entry = org.jruby.javasupport.util.ObjectProxyCache$Entry of org.jruby.javasupport.util.ObjectProxyCache
private abstract EntryRef = org.jruby.javasupport.util.ObjectProxyCache$EntryRef of org.jruby.javasupport.util.ObjectProxyCache
public final ReferenceType = org.jruby.javasupport.util.ObjectProxyCache$ReferenceType of org.jruby.javasupport.util.ObjectProxyCache
Segment = org.jruby.javasupport.util.ObjectProxyCache$Segment of org.jruby.javasupport.util.ObjectProxyCache