public abstract class com.sun.org.apache.xml.internal.security.utils.WeakObjectPool<T, E extends java.lang.Throwable>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.org.apache.xml.internal.security.utils.WeakObjectPool
super_class: java.lang.Object
{
private static final java.lang.Integer MARKER_VALUE;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.BlockingQueue<java.lang.ref.WeakReference<T>> available;
descriptor: Ljava/util/concurrent/BlockingQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/BlockingQueue<Ljava/lang/ref/WeakReference<TT;>;>;
private final java.util.Map<T, java.lang.Integer> onLoan;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<TT;Ljava/lang/Integer;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc 2147483647
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.MARKER_VALUE:Ljava/lang/Integer;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
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.util.concurrent.LinkedBlockingDeque
dup
invokespecial java.util.concurrent.LinkedBlockingDeque.<init>:()V
putfield com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.available:Ljava/util/concurrent/BlockingQueue;
2: aload 0
new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
invokestatic java.util.Collections.synchronizedMap:(Ljava/util/Map;)Ljava/util/Map;
putfield com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.onLoan:Ljava/util/Map;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/org/apache/xml/internal/security/utils/WeakObjectPool<TT;TE;>;
protected abstract T createObject() throws E;
descriptor: ()Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Throwable
Signature: ()TT;^TE;
public T getObject() throws E;
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aconst_null
astore 2
start local 2 1: StackMap locals: com.sun.org.apache.xml.internal.security.utils.WeakObjectPool top java.lang.Object
StackMap stack:
aload 0
getfield com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.available:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.poll:()Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
astore 1
start local 1 2: aload 1
ifnull 3
aload 1
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
dup
astore 2
ifnull 1
3: StackMap locals: com.sun.org.apache.xml.internal.security.utils.WeakObjectPool java.lang.ref.WeakReference java.lang.Object
StackMap stack:
aload 2
ifnonnull 5
4: aload 0
invokevirtual com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.createObject:()Ljava/lang/Object;
astore 2
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.onLoan:Ljava/util/Map;
aload 2
getstatic com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.MARKER_VALUE:Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/org/apache/xml/internal/security/utils/WeakObjectPool<TT;TE;>;
2 7 1 ref Ljava/lang/ref/WeakReference<TT;>;
1 7 2 retValue TT;
Exceptions:
throws java.lang.Throwable
Signature: ()TT;^TE;
public boolean repool();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 9
aload 0
getfield com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.onLoan:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 9
1: aload 1
dup
astore 2
monitorenter
2: aload 0
getfield com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.onLoan:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 5
3: aload 0
getfield com.sun.org.apache.xml.internal.security.utils.WeakObjectPool.available:Ljava/util/concurrent/BlockingQueue;
new java.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.concurrent.BlockingQueue.offer:(Ljava/lang/Object;)Z
aload 2
monitorexit
4: ireturn
5: StackMap locals: java.lang.Object
StackMap stack:
aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/org/apache/xml/internal/security/utils/WeakObjectPool<TT;TE;>;
0 10 1 obj TT;
Exception table:
from to target type
2 4 7 any
5 6 7 any
7 8 7 any
Signature: (TT;)Z
MethodParameters:
Name Flags
obj
}
Signature: <T:Ljava/lang/Object;E:Ljava/lang/Throwable;>Ljava/lang/Object;
SourceFile: "WeakObjectPool.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()