public class sun.java2d.Disposer implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.java2d.Disposer
super_class: java.lang.Object
{
private static final java.lang.ref.ReferenceQueue queue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Hashtable records;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static sun.java2d.Disposer disposerInstance;
descriptor: Lsun/java2d/Disposer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
public static final int WEAK;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int PHANTOM;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static int refType;
descriptor: I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putstatic sun.java2d.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
1: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic sun.java2d.Disposer.records:Ljava/util/Hashtable;
2: iconst_1
putstatic sun.java2d.Disposer.refType:I
3: new sun.security.action.LoadLibraryAction
dup
ldc "awt"
invokespecial sun.security.action.LoadLibraryAction.<init>:(Ljava/lang/String;)V
4: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
5: invokestatic sun.java2d.Disposer.initIDs:()V
6: new sun.security.action.GetPropertyAction
dup
ldc "sun.java2d.reftype"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
7: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 8: aload 0
ifnull 15
9: aload 0
ldc "weak"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
10: iconst_0
putstatic sun.java2d.Disposer.refType:I
11: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Using WEAK refs"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: goto 15
13: StackMap locals: java.lang.String
StackMap stack:
iconst_1
putstatic sun.java2d.Disposer.refType:I
14: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Using PHANTOM refs"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
new sun.java2d.Disposer
dup
invokespecial sun.java2d.Disposer.<init>:()V
putstatic sun.java2d.Disposer.disposerInstance:Lsun/java2d/Disposer;
16: new sun.java2d.Disposer$1
dup
invokespecial sun.java2d.Disposer$1.<init>:()V
17: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
end local 0 18: return
LocalVariableTable:
Start End Slot Name Signature
8 18 0 type Ljava/lang/String;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/java2d/Disposer;
public static void addRecord(java.lang.Object, long, long);
descriptor: (Ljava/lang/Object;JJ)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 3 0: getstatic sun.java2d.Disposer.disposerInstance:Lsun/java2d/Disposer;
aload 0
1: new sun.java2d.DefaultDisposerRecord
dup
lload 1
lload 3
invokespecial sun.java2d.DefaultDisposerRecord.<init>:(JJ)V
2: invokevirtual sun.java2d.Disposer.add:(Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
3: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 target Ljava/lang/Object;
0 4 1 disposeMethod J
0 4 3 pData J
MethodParameters:
Name Flags
target
disposeMethod
pData
public static void addRecord(java.lang.Object, sun.java2d.DisposerRecord);
descriptor: (Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.java2d.Disposer.disposerInstance:Lsun/java2d/Disposer;
aload 0
aload 1
invokevirtual sun.java2d.Disposer.add:(Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 target Ljava/lang/Object;
0 2 1 rec Lsun/java2d/DisposerRecord;
MethodParameters:
Name Flags
target
rec
synchronized void add(java.lang.Object, sun.java2d.DisposerRecord);
descriptor: (Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof sun.java2d.DisposerTarget
ifeq 2
1: aload 1
checkcast sun.java2d.DisposerTarget
invokeinterface sun.java2d.DisposerTarget.getDisposerReferent:()Ljava/lang/Object;
astore 1
2: StackMap locals:
StackMap stack:
getstatic sun.java2d.Disposer.refType:I
iconst_1
if_icmpne 5
3: new java.lang.ref.PhantomReference
dup
aload 1
getstatic sun.java2d.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.PhantomReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 3
start local 3 4: goto 6
end local 3 5: StackMap locals:
StackMap stack:
new java.lang.ref.WeakReference
dup
aload 1
getstatic sun.java2d.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 3
start local 3 6: StackMap locals: java.lang.ref.Reference
StackMap stack:
getstatic sun.java2d.Disposer.records:Ljava/util/Hashtable;
aload 3
aload 2
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/java2d/Disposer;
0 8 1 target Ljava/lang/Object;
0 8 2 rec Lsun/java2d/DisposerRecord;
4 5 3 ref Ljava/lang/ref/Reference;
6 8 3 ref Ljava/lang/ref/Reference;
MethodParameters:
Name Flags
target
rec
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
getstatic sun.java2d.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.remove:()Ljava/lang/ref/Reference;
astore 1
start local 1 1: aload 1
checkcast java.lang.ref.Reference
invokevirtual java.lang.ref.Reference.clear:()V
2: getstatic sun.java2d.Disposer.records:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.java2d.DisposerRecord
astore 2
start local 2 3: aload 2
invokeinterface sun.java2d.DisposerRecord.dispose:()V
4: aconst_null
astore 1
5: aconst_null
astore 2
end local 2 end local 1 6: goto 0
StackMap locals:
StackMap stack: java.lang.Exception
7: pop
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Exception while removing reference."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: goto 0
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/java2d/Disposer;
1 6 1 obj Ljava/lang/Object;
3 6 2 rec Lsun/java2d/DisposerRecord;
Exception table:
from to target type
0 6 7 Class java.lang.Exception
private static native void initIDs();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
public static void addReference(java.lang.ref.Reference, sun.java2d.DisposerRecord);
descriptor: (Ljava/lang/ref/Reference;Lsun/java2d/DisposerRecord;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.java2d.Disposer.records:Ljava/util/Hashtable;
aload 0
aload 1
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ref Ljava/lang/ref/Reference;
0 2 1 rec Lsun/java2d/DisposerRecord;
MethodParameters:
Name Flags
ref
rec
public static void addObjectRecord(java.lang.Object, sun.java2d.DisposerRecord);
descriptor: (Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.java2d.Disposer.records:Ljava/util/Hashtable;
new java.lang.ref.WeakReference
dup
aload 0
getstatic sun.java2d.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
aload 1
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 obj Ljava/lang/Object;
0 2 1 rec Lsun/java2d/DisposerRecord;
MethodParameters:
Name Flags
obj
rec
public static java.lang.ref.ReferenceQueue getQueue();
descriptor: ()Ljava/lang/ref/ReferenceQueue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.java2d.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Disposer.java"
NestMembers:
sun.java2d.Disposer$1
InnerClasses:
sun.java2d.Disposer$1