final class org.apache.cassandra.utils.concurrent.Ref$State extends java.lang.ref.PhantomReference<org.apache.cassandra.utils.concurrent.Ref>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.utils.concurrent.Ref$State
super_class: java.lang.ref.PhantomReference
{
final org.apache.cassandra.utils.concurrent.Ref$Debug debug;
descriptor: Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
flags: (0x0010) ACC_FINAL
final org.apache.cassandra.utils.concurrent.Ref$GlobalState globalState;
descriptor: Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
flags: (0x0010) ACC_FINAL
private volatile int released;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<org.apache.cassandra.utils.concurrent.Ref$State> releasedUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lorg/apache/cassandra/utils/concurrent/Ref$State;>;
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=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/utils/concurrent/Ref;
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.apache.cassandra.utils.concurrent.Ref$State.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/utils/concurrent/Ref$State;
ldc "released"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
putstatic org.apache.cassandra.utils.concurrent.Ref$State.releasedUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.utils.concurrent.Ref$GlobalState, org.apache.cassandra.utils.concurrent.Ref, java.lang.ref.ReferenceQueue<? super org.apache.cassandra.utils.concurrent.Ref>);
descriptor: (Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;Lorg/apache/cassandra/utils/concurrent/Ref;Ljava/lang/ref/ReferenceQueue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
aload 3
invokespecial java.lang.ref.PhantomReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
1: aload 0
getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifeq 2
new org.apache.cassandra.utils.concurrent.Ref$Debug
dup
invokespecial org.apache.cassandra.utils.concurrent.Ref$Debug.<init>:()V
goto 3
StackMap locals: org.apache.cassandra.utils.concurrent.Ref$State org.apache.cassandra.utils.concurrent.Ref$GlobalState org.apache.cassandra.utils.concurrent.Ref java.lang.ref.ReferenceQueue
StackMap stack: org.apache.cassandra.utils.concurrent.Ref$State
2: aconst_null
StackMap locals: org.apache.cassandra.utils.concurrent.Ref$State org.apache.cassandra.utils.concurrent.Ref$GlobalState org.apache.cassandra.utils.concurrent.Ref java.lang.ref.ReferenceQueue
StackMap stack: org.apache.cassandra.utils.concurrent.Ref$State org.apache.cassandra.utils.concurrent.Ref$Debug
3: putfield org.apache.cassandra.utils.concurrent.Ref$State.debug:Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
4: aload 0
aload 1
putfield org.apache.cassandra.utils.concurrent.Ref$State.globalState:Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
5: aload 1
aload 0
invokevirtual org.apache.cassandra.utils.concurrent.Ref$GlobalState.register:(Lorg/apache/cassandra/utils/concurrent/Ref$State;)V
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/utils/concurrent/Ref$State;
0 7 1 globalState Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
0 7 2 reference Lorg/apache/cassandra/utils/concurrent/Ref;
0 7 3 q Ljava/lang/ref/ReferenceQueue<-Lorg/apache/cassandra/utils/concurrent/Ref;>;
Signature: (Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;Lorg/apache/cassandra/utils/concurrent/Ref;Ljava/lang/ref/ReferenceQueue<-Lorg/apache/cassandra/utils/concurrent/Ref;>;)V
MethodParameters:
Name Flags
globalState final
reference
q
void assertNotReleased();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifeq 2
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.released:I
iconst_1
if_icmpne 2
1: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.debug:Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.utils.concurrent.Ref$Debug.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.utils.concurrent.Ref$State.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.released:I
ifeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/utils/concurrent/Ref$State;
java.lang.Throwable ensureReleased(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.utils.concurrent.Ref$State.releasedUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.getAndSet:(Ljava/lang/Object;I)I
ifne 4
1: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.globalState:Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
aload 0
aload 1
invokevirtual org.apache.cassandra.utils.concurrent.Ref$GlobalState.release:(Lorg/apache/cassandra/utils/concurrent/Ref$State;Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 1
2: getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifeq 4
3: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.debug:Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
invokevirtual org.apache.cassandra.utils.concurrent.Ref$Debug.deallocate:()V
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/utils/concurrent/Ref$State;
0 5 1 accumulate Ljava/lang/Throwable;
MethodParameters:
Name Flags
accumulate
void release(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.utils.concurrent.Ref$State.releasedUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.compareAndSet:(Ljava/lang/Object;II)Z
ifne 8
1: iload 1
ifne 7
2: aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 2
start local 2 3: getstatic org.apache.cassandra.utils.concurrent.Ref.logger:Lorg/slf4j/Logger;
ldc "BAD RELEASE: attempted to release a reference ({}) that has already been released"
aload 2
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;)V
4: getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifeq 6
5: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.debug:Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
aload 2
invokevirtual org.apache.cassandra.utils.concurrent.Ref$Debug.log:(Ljava/lang/String;)V
6: StackMap locals: java.lang.String
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "Attempted to release a reference that has already been released"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
return
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.globalState:Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
aload 0
aconst_null
invokevirtual org.apache.cassandra.utils.concurrent.Ref$GlobalState.release:(Lorg/apache/cassandra/utils/concurrent/Ref$State;Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 2
start local 2 9: iload 1
ifeq 15
10: aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 3
start local 3 11: getstatic org.apache.cassandra.utils.concurrent.Ref.logger:Lorg/slf4j/Logger;
ldc "LEAK DETECTED: a reference ({}) to {} was not released before the reference was garbage collected"
aload 3
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.globalState:Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
12: getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifeq 17
13: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.debug:Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
aload 3
invokevirtual org.apache.cassandra.utils.concurrent.Ref$Debug.log:(Ljava/lang/String;)V
end local 3 14: goto 17
15: StackMap locals: java.lang.Throwable
StackMap stack:
getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifeq 17
16: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.debug:Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
invokevirtual org.apache.cassandra.utils.concurrent.Ref$Debug.deallocate:()V
17: StackMap locals:
StackMap stack:
aload 2
ifnull 19
18: getstatic org.apache.cassandra.utils.concurrent.Ref.logger:Lorg/slf4j/Logger;
ldc "Error when closing {}"
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref$State.globalState:Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
aload 2
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
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 Lorg/apache/cassandra/utils/concurrent/Ref$State;
0 20 1 leak Z
3 7 2 id Ljava/lang/String;
9 20 2 fail Ljava/lang/Throwable;
11 14 3 id Ljava/lang/String;
MethodParameters:
Name Flags
leak
}
Signature: Ljava/lang/ref/PhantomReference<Lorg/apache/cassandra/utils/concurrent/Ref;>;
SourceFile: "Ref.java"
NestHost: org.apache.cassandra.utils.concurrent.Ref
InnerClasses:
final Debug = org.apache.cassandra.utils.concurrent.Ref$Debug of org.apache.cassandra.utils.concurrent.Ref
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