class com.fasterxml.jackson.core.util.ThreadLocalBufferManager
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.fasterxml.jackson.core.util.ThreadLocalBufferManager
super_class: java.lang.Object
{
private final java.lang.Object RELEASE_LOCK;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.ref.SoftReference<com.fasterxml.jackson.core.util.BufferRecycler>, java.lang.Boolean> _trackedRecyclers;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/ref/SoftReference<Lcom/fasterxml/jackson/core/util/BufferRecycler;>;Ljava/lang/Boolean;>;
private final java.lang.ref.ReferenceQueue<com.fasterxml.jackson.core.util.BufferRecycler> _refQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Lcom/fasterxml/jackson/core/util/BufferRecycler;>;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager.RELEASE_LOCK:Ljava/lang/Object;
2: aload 0
3: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager._trackedRecyclers:Ljava/util/Map;
4: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager._refQueue:Ljava/lang/ref/ReferenceQueue;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/fasterxml/jackson/core/util/ThreadLocalBufferManager;
public static com.fasterxml.jackson.core.util.ThreadLocalBufferManager instance();
descriptor: ()Lcom/fasterxml/jackson/core/util/ThreadLocalBufferManager;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.fasterxml.jackson.core.util.ThreadLocalBufferManager$ThreadLocalBufferManagerHolder.manager:Lcom/fasterxml/jackson/core/util/ThreadLocalBufferManager;
areturn
LocalVariableTable:
Start End Slot Name Signature
public int releaseBuffers();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager.RELEASE_LOCK:Ljava/lang/Object;
dup
astore 1
monitorenter
1: iconst_0
istore 2
start local 2 2: aload 0
invokevirtual com.fasterxml.jackson.core.util.ThreadLocalBufferManager.removeSoftRefsClearedByGc:()V
3: aload 0
getfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager._trackedRecyclers:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: com.fasterxml.jackson.core.util.ThreadLocalBufferManager java.lang.Object int top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.ref.SoftReference
astore 3
start local 3 5: aload 3
invokevirtual java.lang.ref.SoftReference.clear:()V
6: iinc 2 1
end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aload 0
getfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager._trackedRecyclers:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
9: iload 2
aload 1
monitorexit
10: ireturn
end local 2 11: StackMap locals: com.fasterxml.jackson.core.util.ThreadLocalBufferManager java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
12: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/fasterxml/jackson/core/util/ThreadLocalBufferManager;
2 11 2 count I
5 7 3 ref Ljava/lang/ref/SoftReference<Lcom/fasterxml/jackson/core/util/BufferRecycler;>;
Exception table:
from to target type
1 10 11 any
11 12 11 any
public java.lang.ref.SoftReference<com.fasterxml.jackson.core.util.BufferRecycler> wrapAndTrack(com.fasterxml.jackson.core.util.BufferRecycler);
descriptor: (Lcom/fasterxml/jackson/core/util/BufferRecycler;)Ljava/lang/ref/SoftReference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.ref.SoftReference
dup
aload 1
aload 0
getfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager._refQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 2
start local 2 1: aload 0
getfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager._trackedRecyclers:Ljava/util/Map;
aload 2
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
invokevirtual com.fasterxml.jackson.core.util.ThreadLocalBufferManager.removeSoftRefsClearedByGc:()V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/fasterxml/jackson/core/util/ThreadLocalBufferManager;
0 4 1 br Lcom/fasterxml/jackson/core/util/BufferRecycler;
1 4 2 newRef Ljava/lang/ref/SoftReference<Lcom/fasterxml/jackson/core/util/BufferRecycler;>;
Signature: (Lcom/fasterxml/jackson/core/util/BufferRecycler;)Ljava/lang/ref/SoftReference<Lcom/fasterxml/jackson/core/util/BufferRecycler;>;
MethodParameters:
Name Flags
br
private void removeSoftRefsClearedByGc();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: goto 2
start local 1 1: StackMap locals: java.lang.ref.SoftReference
StackMap stack:
aload 0
getfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager._trackedRecyclers:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 1 2: StackMap locals:
StackMap stack:
aload 0
getfield com.fasterxml.jackson.core.util.ThreadLocalBufferManager._refQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast java.lang.ref.SoftReference
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 Lcom/fasterxml/jackson/core/util/ThreadLocalBufferManager;
1 2 1 clearedSoftRef Ljava/lang/ref/SoftReference<*>;
3 5 1 clearedSoftRef Ljava/lang/ref/SoftReference<*>;
}
SourceFile: "ThreadLocalBufferManager.java"
NestMembers:
com.fasterxml.jackson.core.util.ThreadLocalBufferManager$ThreadLocalBufferManagerHolder
InnerClasses:
private final ThreadLocalBufferManagerHolder = com.fasterxml.jackson.core.util.ThreadLocalBufferManager$ThreadLocalBufferManagerHolder of com.fasterxml.jackson.core.util.ThreadLocalBufferManager