public abstract class sun.java2d.ReentrantContextProviderTL<K extends sun.java2d.ReentrantContext> extends sun.java2d.ReentrantContextProvider<K>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.java2d.ReentrantContextProviderTL
super_class: sun.java2d.ReentrantContextProvider
{
private final java.lang.ThreadLocal<java.lang.ref.Reference<K>> ctxTL;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/lang/ref/Reference<TK;>;>;
private final sun.java2d.ReentrantContextProviderCLQ<K> ctxProviderCLQ;
descriptor: Lsun/java2d/ReentrantContextProviderCLQ;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lsun/java2d/ReentrantContextProviderCLQ<TK;>;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_2
invokespecial sun.java2d.ReentrantContextProviderTL.<init>:(II)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/ReentrantContextProviderTL<TK;>;
0 2 1 refType I
MethodParameters:
Name Flags
refType final
public void <init>(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokespecial sun.java2d.ReentrantContextProvider.<init>:(I)V
1: aload 0
2: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield sun.java2d.ReentrantContextProviderTL.ctxTL:Ljava/lang/ThreadLocal;
3: aload 0
astore 3
start local 3 4: aload 0
new sun.java2d.ReentrantContextProviderTL$1
dup
aload 0
iload 2
aload 3
invokespecial sun.java2d.ReentrantContextProviderTL$1.<init>:(Lsun/java2d/ReentrantContextProviderTL;ILsun/java2d/ReentrantContextProviderTL;)V
putfield sun.java2d.ReentrantContextProviderTL.ctxProviderCLQ:Lsun/java2d/ReentrantContextProviderCLQ;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/java2d/ReentrantContextProviderTL<TK;>;
0 6 1 refTypeTL I
0 6 2 refTypeCLQ I
4 6 3 parent Lsun/java2d/ReentrantContextProviderTL<TK;>;
MethodParameters:
Name Flags
refTypeTL final
refTypeCLQ final
public final K acquire();
descriptor: ()Lsun/java2d/ReentrantContext;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield sun.java2d.ReentrantContextProviderTL.ctxTL:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.lang.ref.Reference
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
invokevirtual java.lang.ref.Reference.get:()Ljava/lang/Object;
checkcast sun.java2d.ReentrantContext
astore 1
4: StackMap locals: sun.java2d.ReentrantContext java.lang.ref.Reference
StackMap stack:
aload 1
ifnonnull 7
5: aload 0
invokevirtual sun.java2d.ReentrantContextProviderTL.newContext:()Lsun/java2d/ReentrantContext;
astore 1
6: aload 0
getfield sun.java2d.ReentrantContextProviderTL.ctxTL:Ljava/lang/ThreadLocal;
aload 0
aload 1
invokevirtual sun.java2d.ReentrantContextProviderTL.getOrCreateReference:(Lsun/java2d/ReentrantContext;)Ljava/lang/ref/Reference;
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
aload 1
getfield sun.java2d.ReentrantContext.usage:B
ifne 10
8: aload 1
iconst_1
putfield sun.java2d.ReentrantContext.usage:B
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
getfield sun.java2d.ReentrantContextProviderTL.ctxProviderCLQ:Lsun/java2d/ReentrantContextProviderCLQ;
invokevirtual sun.java2d.ReentrantContextProviderCLQ.acquire:()Lsun/java2d/ReentrantContext;
astore 1
11: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/java2d/ReentrantContextProviderTL<TK;>;
1 12 1 ctx TK;
2 12 2 ref Ljava/lang/ref/Reference<TK;>;
Signature: ()TK;
public final void release();
descriptor: (Lsun/java2d/ReentrantContext;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield sun.java2d.ReentrantContext.usage:B
iconst_1
if_icmpne 3
1: aload 1
iconst_0
putfield sun.java2d.ReentrantContext.usage:B
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.java2d.ReentrantContextProviderTL.ctxProviderCLQ:Lsun/java2d/ReentrantContextProviderCLQ;
aload 1
invokevirtual sun.java2d.ReentrantContextProviderCLQ.release:(Lsun/java2d/ReentrantContext;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/java2d/ReentrantContextProviderTL<TK;>;
0 5 1 ctx TK;
Signature: (TK;)V
MethodParameters:
Name Flags
ctx final
}
Signature: <K:Lsun/java2d/ReentrantContext;>Lsun/java2d/ReentrantContextProvider<TK;>;
SourceFile: "ReentrantContextProviderTL.java"
NestMembers:
sun.java2d.ReentrantContextProviderTL$1
InnerClasses:
sun.java2d.ReentrantContextProviderTL$1