final class org.apache.cassandra.utils.concurrent.Ref$GlobalState
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.utils.concurrent.Ref$GlobalState
super_class: java.lang.Object
{
private final java.util.Collection<org.apache.cassandra.utils.concurrent.Ref$State> locallyExtant;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Lorg/apache/cassandra/utils/concurrent/Ref$State;>;
private final java.util.concurrent.atomic.AtomicInteger counts;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.utils.concurrent.RefCounted$Tidy tidy;
descriptor: Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.apache.cassandra.utils.concurrent.RefCounted$Tidy);
descriptor: (Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;)V
flags: (0x0000)
Code:
stack=3, 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.util.concurrent.ConcurrentLinkedDeque
dup
invokespecial java.util.concurrent.ConcurrentLinkedDeque.<init>:()V
putfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.locallyExtant:Ljava/util/Collection;
2: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.counts:Ljava/util/concurrent/atomic/AtomicInteger;
3: aload 0
aload 1
putfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.tidy:Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
4: getstatic org.apache.cassandra.utils.concurrent.Ref.globallyExtant:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
0 6 1 tidy Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
MethodParameters:
Name Flags
tidy
void register(org.apache.cassandra.utils.concurrent.Ref$State);
descriptor: (Lorg/apache/cassandra/utils/concurrent/Ref$State;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.locallyExtant:Ljava/util/Collection;
aload 1
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
0 2 1 ref Lorg/apache/cassandra/utils/concurrent/Ref$State;
MethodParameters:
Name Flags
ref
boolean ref();
descriptor: ()Z
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.counts:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 1
start local 1 1: iload 1
ifge 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.counts:Ljava/util/concurrent/atomic/AtomicInteger;
iload 1
iload 1
iconst_1
iadd
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 0
4: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
1 5 1 cur I
java.lang.Throwable release(org.apache.cassandra.utils.concurrent.Ref$State, java.lang.Throwable);
descriptor: (Lorg/apache/cassandra/utils/concurrent/Ref$State;Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0000)
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.locallyExtant:Ljava/util/Collection;
aload 1
invokeinterface java.util.Collection.remove:(Ljava/lang/Object;)Z
pop
1: iconst_m1
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.counts:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
if_icmpne 8
2: getstatic org.apache.cassandra.utils.concurrent.Ref.globallyExtant:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
3: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.tidy:Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
ifnull 8
4: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.tidy:Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
invokeinterface org.apache.cassandra.utils.concurrent.RefCounted$Tidy.tidy:()V
5: goto 8
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 7: aload 2
aload 3
invokestatic org.apache.cassandra.utils.Throwables.merge:(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 2
end local 3 8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
0 9 1 ref Lorg/apache/cassandra/utils/concurrent/Ref$State;
0 9 2 accumulate Ljava/lang/Throwable;
7 8 3 t Ljava/lang/Throwable;
Exception table:
from to target type
3 5 6 Class java.lang.Throwable
MethodParameters:
Name Flags
ref
accumulate
int count();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: iconst_1
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.counts:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.tidy:Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
ifnull 2
1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.tidy:Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "@"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.tidy:Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$GlobalState.tidy:Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
invokeinterface org.apache.cassandra.utils.concurrent.RefCounted$Tidy.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "@"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
}
SourceFile: "Ref.java"
NestHost: org.apache.cassandra.utils.concurrent.Ref
InnerClasses:
final GlobalState = org.apache.cassandra.utils.concurrent.Ref$GlobalState of org.apache.cassandra.utils.concurrent.Ref
final State = org.apache.cassandra.utils.concurrent.Ref$State of org.apache.cassandra.utils.concurrent.Ref
public abstract Tidy = org.apache.cassandra.utils.concurrent.RefCounted$Tidy of org.apache.cassandra.utils.concurrent.RefCounted