public final class org.apache.cassandra.utils.concurrent.Ref<T> implements org.apache.cassandra.utils.concurrent.RefCounted<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.utils.concurrent.Ref
super_class: java.lang.Object
{
static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x0018) ACC_STATIC, ACC_FINAL
public static final boolean DEBUG_ENABLED;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
final org.apache.cassandra.utils.concurrent.Ref$State state;
descriptor: Lorg/apache/cassandra/utils/concurrent/Ref$State;
flags: (0x0010) ACC_FINAL
final T referent;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
Signature: TT;
private static final java.lang.Class<?>[] concurrentIterableClasses;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: [Ljava/lang/Class<*>;
static final java.util.Set<java.lang.Class<?>> concurrentIterables;
descriptor: Ljava/util/Set;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Class<*>;>;
private static final java.util.Set<org.apache.cassandra.utils.concurrent.Ref$GlobalState> globallyExtant;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;>;
static final java.lang.ref.ReferenceQueue<java.lang.Object> referenceQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
private static final org.apache.cassandra.concurrent.InfiniteLoopExecutor EXEC;
descriptor: Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final java.util.concurrent.ScheduledExecutorService STRONG_LEAK_DETECTOR;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.util.Deque<org.apache.cassandra.utils.concurrent.Ref$InProgressVisit> inProgressVisitPool;
descriptor: Ljava/util/Deque;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Deque<Lorg/apache/cassandra/utils/concurrent/Ref$InProgressVisit;>;
static final java.util.Map<java.lang.Class<?>, java.util.List<java.lang.reflect.Field>> fieldMap;
descriptor: Ljava/util/Map;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<*>;Ljava/util/List<Ljava/lang/reflect/Field;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/utils/concurrent/Ref;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.utils.concurrent.Ref.logger:Lorg/slf4j/Logger;
1: ldc "cassandra.debugrefcount"
ldc "false"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
ldc "true"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
putstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
2: bipush 7
anewarray java.lang.Class
dup
iconst_0
3: ldc Ljava/util/concurrent/ConcurrentLinkedQueue;
aastore
dup
iconst_1
4: ldc Ljava/util/concurrent/ConcurrentLinkedDeque;
aastore
dup
iconst_2
5: ldc Ljava/util/concurrent/ConcurrentSkipListSet;
aastore
dup
iconst_3
6: ldc Ljava/util/concurrent/CopyOnWriteArrayList;
aastore
dup
iconst_4
7: ldc Ljava/util/concurrent/CopyOnWriteArraySet;
aastore
dup
iconst_5
8: ldc Ljava/util/concurrent/DelayQueue;
aastore
dup
bipush 6
9: ldc Lorg/cliffc/high_scale_lib/NonBlockingHashMap;
aastore
10: putstatic org.apache.cassandra.utils.concurrent.Ref.concurrentIterableClasses:[Ljava/lang/Class;
11: new java.util.IdentityHashMap
dup
invokespecial java.util.IdentityHashMap.<init>:()V
invokestatic java.util.Collections.newSetFromMap:(Ljava/util/Map;)Ljava/util/Set;
putstatic org.apache.cassandra.utils.concurrent.Ref.concurrentIterables:Ljava/util/Set;
12: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
invokestatic java.util.Collections.newSetFromMap:(Ljava/util/Map;)Ljava/util/Set;
putstatic org.apache.cassandra.utils.concurrent.Ref.globallyExtant:Ljava/util/Set;
13: new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putstatic org.apache.cassandra.utils.concurrent.Ref.referenceQueue:Ljava/lang/ref/ReferenceQueue;
14: new org.apache.cassandra.concurrent.InfiniteLoopExecutor
dup
ldc "Reference-Reaper"
invokedynamic run()Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;
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:
()V
org/apache/cassandra/utils/concurrent/Ref.reapOneReference()V (6)
()V
invokespecial org.apache.cassandra.concurrent.InfiniteLoopExecutor.<init>:(Ljava/lang/String;Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;)V
invokevirtual org.apache.cassandra.concurrent.InfiniteLoopExecutor.start:()Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
putstatic org.apache.cassandra.utils.concurrent.Ref.EXEC:Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
15: getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifne 16
aconst_null
goto 17
StackMap locals:
StackMap stack:
16: iconst_1
new org.apache.cassandra.concurrent.NamedThreadFactory
dup
ldc "Strong-Reference-Leak-Detector"
invokespecial org.apache.cassandra.concurrent.NamedThreadFactory.<init>:(Ljava/lang/String;)V
invokestatic java.util.concurrent.Executors.newScheduledThreadPool:(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
StackMap locals:
StackMap stack: java.util.concurrent.ScheduledExecutorService
17: putstatic org.apache.cassandra.utils.concurrent.Ref.STRONG_LEAK_DETECTOR:Ljava/util/concurrent/ScheduledExecutorService;
18: getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifeq 21
19: getstatic org.apache.cassandra.utils.concurrent.Ref.STRONG_LEAK_DETECTOR:Ljava/util/concurrent/ScheduledExecutorService;
new org.apache.cassandra.utils.concurrent.Ref$Visitor
dup
invokespecial org.apache.cassandra.utils.concurrent.Ref$Visitor.<init>:()V
lconst_1
ldc 15
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.ScheduledExecutorService.scheduleAtFixedRate:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
pop
20: getstatic org.apache.cassandra.utils.concurrent.Ref.STRONG_LEAK_DETECTOR:Ljava/util/concurrent/ScheduledExecutorService;
new org.apache.cassandra.utils.concurrent.Ref$StrongLeakDetector
dup
invokespecial org.apache.cassandra.utils.concurrent.Ref$StrongLeakDetector.<init>:()V
ldc 2
ldc 15
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.ScheduledExecutorService.scheduleAtFixedRate:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
pop
21: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.utils.concurrent.Ref.concurrentIterables:Ljava/util/Set;
getstatic org.apache.cassandra.utils.concurrent.Ref.concurrentIterableClasses:[Ljava/lang/Class;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
22: new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putstatic org.apache.cassandra.utils.concurrent.Ref.inProgressVisitPool:Ljava/util/Deque;
23: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic org.apache.cassandra.utils.concurrent.Ref.fieldMap:Ljava/util/Map;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(T, org.apache.cassandra.utils.concurrent.RefCounted$Tidy);
descriptor: (Ljava/lang/Object;Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.apache.cassandra.utils.concurrent.Ref$State
dup
new org.apache.cassandra.utils.concurrent.Ref$GlobalState
dup
aload 2
invokespecial org.apache.cassandra.utils.concurrent.Ref$GlobalState.<init>:(Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;)V
aload 0
getstatic org.apache.cassandra.utils.concurrent.Ref.referenceQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.apache.cassandra.utils.concurrent.Ref$State.<init>:(Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;Lorg/apache/cassandra/utils/concurrent/Ref;Ljava/lang/ref/ReferenceQueue;)V
putfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
2: aload 0
aload 1
putfield org.apache.cassandra.utils.concurrent.Ref.referent:Ljava/lang/Object;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
0 4 1 referent TT;
0 4 2 tidy Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;
Signature: (TT;Lorg/apache/cassandra/utils/concurrent/RefCounted$Tidy;)V
MethodParameters:
Name Flags
referent
tidy
void <init>(T, org.apache.cassandra.utils.concurrent.Ref$GlobalState);
descriptor: (Ljava/lang/Object;Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.apache.cassandra.utils.concurrent.Ref$State
dup
aload 2
aload 0
getstatic org.apache.cassandra.utils.concurrent.Ref.referenceQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.apache.cassandra.utils.concurrent.Ref$State.<init>:(Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;Lorg/apache/cassandra/utils/concurrent/Ref;Ljava/lang/ref/ReferenceQueue;)V
putfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
2: aload 0
aload 1
putfield org.apache.cassandra.utils.concurrent.Ref.referent:Ljava/lang/Object;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
0 4 1 referent TT;
0 4 2 state Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
Signature: (TT;Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;)V
MethodParameters:
Name Flags
referent
state
public void release();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
iconst_0
invokevirtual org.apache.cassandra.utils.concurrent.Ref$State.release:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
public java.lang.Throwable ensureReleased(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
aload 1
invokevirtual org.apache.cassandra.utils.concurrent.Ref$State.ensureReleased:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
0 1 1 accumulate Ljava/lang/Throwable;
MethodParameters:
Name Flags
accumulate
public void ensureReleased();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
aconst_null
invokevirtual org.apache.cassandra.utils.concurrent.Ref$State.ensureReleased:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
invokestatic org.apache.cassandra.utils.Throwables.maybeFail:(Ljava/lang/Throwable;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.utils.concurrent.Ref.ensureReleased:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
public T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
invokevirtual org.apache.cassandra.utils.concurrent.Ref$State.assertNotReleased:()V
1: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.referent:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
Signature: ()TT;
public org.apache.cassandra.utils.concurrent.Ref<T> tryRef();
descriptor: ()Lorg/apache/cassandra/utils/concurrent/Ref;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
getfield org.apache.cassandra.utils.concurrent.Ref$State.globalState:Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
invokevirtual org.apache.cassandra.utils.concurrent.Ref$GlobalState.ref:()Z
ifeq 1
new org.apache.cassandra.utils.concurrent.Ref
dup
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.referent:Ljava/lang/Object;
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
getfield org.apache.cassandra.utils.concurrent.Ref$State.globalState:Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
invokespecial org.apache.cassandra.utils.concurrent.Ref.<init>:(Ljava/lang/Object;Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;)V
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: org.apache.cassandra.utils.concurrent.Ref
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
Signature: ()Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
public org.apache.cassandra.utils.concurrent.Ref<T> ref();
descriptor: ()Lorg/apache/cassandra/utils/concurrent/Ref;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.utils.concurrent.Ref.tryRef:()Lorg/apache/cassandra/utils/concurrent/Ref;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
invokevirtual org.apache.cassandra.utils.concurrent.Ref$State.assertNotReleased:()V
3: StackMap locals: org.apache.cassandra.utils.concurrent.Ref
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
1 4 1 ref Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
Signature: ()Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
public java.lang.String printDebugInfo();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.utils.concurrent.Ref.DEBUG_ENABLED:Z
ifeq 3
1: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
getfield org.apache.cassandra.utils.concurrent.Ref$State.debug:Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.utils.concurrent.Ref$Debug.log:(Ljava/lang/String;)V
2: new java.lang.StringBuilder
dup
ldc "Memory was freed by "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
getfield org.apache.cassandra.utils.concurrent.Ref$State.debug:Lorg/apache/cassandra/utils/concurrent/Ref$Debug;
getfield org.apache.cassandra.utils.concurrent.Ref$Debug.deallocateThread:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
3: StackMap locals:
StackMap stack:
ldc "Memory was freed"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
public int globalCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Ref.state:Lorg/apache/cassandra/utils/concurrent/Ref$State;
getfield org.apache.cassandra.utils.concurrent.Ref$State.globalState:Lorg/apache/cassandra/utils/concurrent/Ref$GlobalState;
invokevirtual org.apache.cassandra.utils.concurrent.Ref$GlobalState.count:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/concurrent/Ref<TT;>;
private static void reapOneReference();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.utils.concurrent.Ref.referenceQueue:Ljava/lang/ref/ReferenceQueue;
ldc 100
invokevirtual java.lang.ref.ReferenceQueue.remove:(J)Ljava/lang/ref/Reference;
astore 0
start local 0 1: aload 0
instanceof org.apache.cassandra.utils.concurrent.Ref$State
ifeq 3
2: aload 0
checkcast org.apache.cassandra.utils.concurrent.Ref$State
iconst_1
invokevirtual org.apache.cassandra.utils.concurrent.Ref$State.release:(Z)V
3: StackMap locals: java.lang.Object
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 obj Ljava/lang/Object;
Exceptions:
throws java.lang.InterruptedException
static org.apache.cassandra.utils.concurrent.Ref$InProgressVisit newInProgressVisit(, java.util.List<java.lang.reflect.Field>, java.lang.reflect.Field, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/util/List;Ljava/lang/reflect/Field;Ljava/lang/String;)Lorg/apache/cassandra/utils/concurrent/Ref$InProgressVisit;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: getstatic org.apache.cassandra.utils.concurrent.Ref.inProgressVisitPool:Ljava/util/Deque;
invokeinterface java.util.Deque.pollLast:()Ljava/lang/Object;
checkcast org.apache.cassandra.utils.concurrent.Ref$InProgressVisit
astore 4
start local 4 2: aload 4
ifnonnull 4
3: new org.apache.cassandra.utils.concurrent.Ref$InProgressVisit
dup
invokespecial org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.<init>:()V
astore 4
4: StackMap locals: org.apache.cassandra.utils.concurrent.Ref$InProgressVisit
StackMap stack:
aload 4
aload 0
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.o:Ljava/lang/Object;
5: aload 0
instanceof java.lang.Object[]
ifeq 7
6: aload 4
aload 0
checkcast java.lang.Object[]
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.collectionIterator:Ljava/util/Iterator;
goto 13
7: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.concurrent.ConcurrentMap
ifeq 11
8: aload 4
iconst_1
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.isMapIterator:Z
9: aload 4
aload 0
checkcast java.util.Map
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.collectionIterator:Ljava/util/Iterator;
10: goto 13
11: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.utils.concurrent.Ref.concurrentIterables:Ljava/util/Set;
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
aload 0
instanceof java.util.concurrent.BlockingQueue
ior
ifeq 13
12: aload 4
aload 0
checkcast java.lang.Iterable
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.collectionIterator:Ljava/util/Iterator;
13: StackMap locals:
StackMap stack:
aload 4
aload 1
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.fields:Ljava/util/List;
14: aload 4
aload 2
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.field:Ljava/lang/reflect/Field;
15: aload 4
aload 3
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.name:Ljava/lang/String;
16: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 o Ljava/lang/Object;
0 17 1 fields Ljava/util/List<Ljava/lang/reflect/Field;>;
0 17 2 field Ljava/lang/reflect/Field;
0 17 3 name Ljava/lang/String;
2 17 4 ipv Lorg/apache/cassandra/utils/concurrent/Ref$InProgressVisit;
Signature: (Ljava/lang/Object;Ljava/util/List<Ljava/lang/reflect/Field;>;Ljava/lang/reflect/Field;Ljava/lang/String;)Lorg/apache/cassandra/utils/concurrent/Ref$InProgressVisit;
MethodParameters:
Name Flags
o
fields
field
name
static void returnInProgressVisit(org.apache.cassandra.utils.concurrent.Ref$InProgressVisit);
descriptor: (Lorg/apache/cassandra/utils/concurrent/Ref$InProgressVisit;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.utils.concurrent.Ref.inProgressVisitPool:Ljava/util/Deque;
invokeinterface java.util.Deque.size:()I
sipush 1024
if_icmple 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.name:Ljava/lang/String;
3: aload 0
aconst_null
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.fields:Ljava/util/List;
4: aload 0
aconst_null
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.o:Ljava/lang/Object;
5: aload 0
iconst_0
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.fieldIndex:I
6: aload 0
aconst_null
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.field:Ljava/lang/reflect/Field;
7: aload 0
aconst_null
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.collectionIterator:Ljava/util/Iterator;
8: aload 0
aconst_null
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.mapEntryValue:Ljava/lang/Object;
9: aload 0
iconst_0
putfield org.apache.cassandra.utils.concurrent.Ref$InProgressVisit.isMapIterator:Z
10: getstatic org.apache.cassandra.utils.concurrent.Ref.inProgressVisitPool:Ljava/util/Deque;
aload 0
invokeinterface java.util.Deque.offer:(Ljava/lang/Object;)Z
pop
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 ipv Lorg/apache/cassandra/utils/concurrent/Ref$InProgressVisit;
MethodParameters:
Name Flags
ipv
static java.util.List<java.lang.reflect.Field> getFields(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
ldc Ljava/lang/ref/PhantomReference;
if_acmpeq 1
aload 0
ldc Ljava/lang/Class;
if_acmpeq 1
ldc Ljava/lang/reflect/Member;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.utils.concurrent.Ref.fieldMap:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 1
start local 1 3: aload 1
ifnull 5
4: aload 1
areturn
5: StackMap locals: java.util.List
StackMap stack:
getstatic org.apache.cassandra.utils.concurrent.Ref.fieldMap:Ljava/util/Map;
aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
dup
astore 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
invokevirtual java.lang.Class.getDeclaredFields:()[Ljava/lang/reflect/Field;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 13
StackMap locals: java.lang.Class java.util.List top int int java.lang.reflect.Field[]
StackMap stack:
7: aload 5
iload 3
aaload
astore 2
start local 2 8: aload 2
invokevirtual java.lang.reflect.Field.getType:()Ljava/lang/Class;
invokevirtual java.lang.Class.isPrimitive:()Z
ifne 12
aload 2
invokevirtual java.lang.reflect.Field.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 10
9: goto 12
10: StackMap locals: java.lang.Class java.util.List java.lang.reflect.Field int int java.lang.reflect.Field[]
StackMap stack:
aload 2
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
11: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 12: StackMap locals: java.lang.Class java.util.List top int int java.lang.reflect.Field[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
13: iload 3
iload 4
if_icmplt 7
14: aload 1
aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
invokestatic org.apache.cassandra.utils.concurrent.Ref.getFields:(Ljava/lang/Class;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
15: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 clazz Ljava/lang/Class<*>;
3 16 1 fields Ljava/util/List<Ljava/lang/reflect/Field;>;
8 12 2 field Ljava/lang/reflect/Field;
Signature: (Ljava/lang/Class<*>;)Ljava/util/List<Ljava/lang/reflect/Field;>;
MethodParameters:
Name Flags
clazz
public static void shutdownReferenceReaper(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 2 0: lload 0
aload 2
iconst_2
anewarray java.lang.Object
dup
iconst_0
getstatic org.apache.cassandra.utils.concurrent.Ref.EXEC:Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
aastore
dup
iconst_1
getstatic org.apache.cassandra.utils.concurrent.Ref.STRONG_LEAK_DETECTOR:Ljava/util/concurrent/ScheduledExecutorService;
aastore
invokestatic org.apache.cassandra.utils.ExecutorUtils.shutdownNowAndWait:(JLjava/util/concurrent/TimeUnit;[Ljava/lang/Object;)V
1: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 timeout J
0 2 2 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
timeout
unit
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/cassandra/utils/concurrent/RefCounted<TT;>;
SourceFile: "Ref.java"
NestMembers:
org.apache.cassandra.utils.concurrent.Ref$Debug org.apache.cassandra.utils.concurrent.Ref$GlobalState org.apache.cassandra.utils.concurrent.Ref$IdentityCollection org.apache.cassandra.utils.concurrent.Ref$InProgressVisit org.apache.cassandra.utils.concurrent.Ref$State org.apache.cassandra.utils.concurrent.Ref$StrongLeakDetector org.apache.cassandra.utils.concurrent.Ref$Visitor
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract InterruptibleRunnable = org.apache.cassandra.concurrent.InfiniteLoopExecutor$InterruptibleRunnable of org.apache.cassandra.concurrent.InfiniteLoopExecutor
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
public IdentityCollection = org.apache.cassandra.utils.concurrent.Ref$IdentityCollection of org.apache.cassandra.utils.concurrent.Ref
InProgressVisit = org.apache.cassandra.utils.concurrent.Ref$InProgressVisit of org.apache.cassandra.utils.concurrent.Ref
final State = org.apache.cassandra.utils.concurrent.Ref$State of org.apache.cassandra.utils.concurrent.Ref
private StrongLeakDetector = org.apache.cassandra.utils.concurrent.Ref$StrongLeakDetector of org.apache.cassandra.utils.concurrent.Ref
Visitor = org.apache.cassandra.utils.concurrent.Ref$Visitor of org.apache.cassandra.utils.concurrent.Ref
public abstract Tidy = org.apache.cassandra.utils.concurrent.RefCounted$Tidy of org.apache.cassandra.utils.concurrent.RefCounted