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
private static java.util.ArrayList<sun.java2d.DisposerRecord> deferredRecords;
descriptor: Ljava/util/ArrayList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/ArrayList<Lsun/java2d/DisposerRecord;>;
public static volatile boolean pollingQueue;
descriptor: Z
flags: (0x0049) ACC_PUBLIC, ACC_STATIC, ACC_VOLATILE
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.java2d.Disposer$1
dup
invokespecial sun.java2d.Disposer$1.<init>:()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: invokedynamic run()Ljava/security/PrivilegedAction;
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:
()Ljava/lang/Object;
sun/java2d/Disposer.lambda$0()Ljava/lang/Void; (6)
()Ljava/lang/Void;
17: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
end local 0 18: aconst_null
putstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
19: iconst_0
putstatic sun.java2d.Disposer.pollingQueue:Z
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
6: invokestatic sun.java2d.Disposer.clearDeferredRecords:()V
end local 2 end local 1 7: goto 0
StackMap locals:
StackMap stack: java.lang.Exception
8: pop
9: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Exception while removing reference."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: goto 0
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/java2d/Disposer;
1 7 1 obj Ljava/lang/Object;
3 7 2 rec Lsun/java2d/DisposerRecord;
Exception table:
from to target type
0 7 8 Class java.lang.Exception
private static void clearDeferredRecords();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: getstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
ifnull 1
getstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
iconst_0
istore 0
start local 0 3: goto 10
4: StackMap locals: int
StackMap stack:
getstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
iload 0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast sun.java2d.DisposerRecord
astore 1
start local 1 5: aload 1
invokeinterface sun.java2d.DisposerRecord.dispose:()V
end local 1 6: goto 9
StackMap locals:
StackMap stack: java.lang.Exception
7: pop
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Exception while disposing deferred rec."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
iinc 0 1
StackMap locals:
StackMap stack:
10: iload 0
getstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 4
end local 0 11: getstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.clear:()V
12: return
LocalVariableTable:
Start End Slot Name Signature
3 11 0 i I
5 6 1 rec Lsun/java2d/DisposerRecord;
Exception table:
from to target type
4 6 7 Class java.lang.Exception
public static void pollRemove();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=0
0: getstatic sun.java2d.Disposer.pollingQueue:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
iconst_1
putstatic sun.java2d.Disposer.pollingQueue:Z
3: iconst_0
istore 1
start local 1 4: iconst_0
istore 2
start local 2 5: goto 20
start local 0 6: StackMap locals: java.lang.Object int int
StackMap stack:
iinc 1 1
7: aload 0
checkcast java.lang.ref.Reference
invokevirtual java.lang.ref.Reference.clear:()V
8: getstatic sun.java2d.Disposer.records:Ljava/util/Hashtable;
aload 0
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.java2d.DisposerRecord
astore 3
start local 3 9: aload 3
instanceof sun.java2d.Disposer$PollDisposable
ifeq 14
10: aload 3
invokeinterface sun.java2d.DisposerRecord.dispose:()V
11: aconst_null
astore 0
12: aconst_null
astore 3
13: goto 20
14: StackMap locals: sun.java2d.DisposerRecord
StackMap stack:
aload 3
ifnonnull 16
15: goto 20
16: StackMap locals:
StackMap stack:
iinc 2 1
17: getstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
ifnonnull 19
18: new java.util.ArrayList
dup
iconst_5
invokespecial java.util.ArrayList.<init>:(I)V
putstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
19: StackMap locals:
StackMap stack:
getstatic sun.java2d.Disposer.deferredRecords:Ljava/util/ArrayList;
aload 3
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 3 end local 0 20: StackMap locals: top int int
StackMap stack:
getstatic sun.java2d.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
dup
astore 0
start local 0 21: ifnull 31
22: iload 1
sipush 10000
if_icmpge 31
iload 2
bipush 100
23: if_icmplt 6
end local 0 24: goto 31
StackMap locals:
StackMap stack: java.lang.Exception
25: pop
26: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Exception while removing reference."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
27: iconst_0
putstatic sun.java2d.Disposer.pollingQueue:Z
goto 32
28: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
29: iconst_0
putstatic sun.java2d.Disposer.pollingQueue:Z
30: aload 4
athrow
31: StackMap locals:
StackMap stack:
iconst_0
putstatic sun.java2d.Disposer.pollingQueue:Z
32: StackMap locals:
StackMap stack:
return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
6 20 0 obj Ljava/lang/Object;
21 24 0 obj Ljava/lang/Object;
4 33 1 freed I
5 33 2 deferred I
9 20 3 rec Lsun/java2d/DisposerRecord;
Exception table:
from to target type
5 24 25 Class java.lang.Exception
5 27 28 any
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
private static java.lang.Void lambda$0();
descriptor: ()Ljava/lang/Void;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=2, args_size=0
0: invokestatic sun.misc.ThreadGroupUtils.getRootThreadGroup:()Ljava/lang/ThreadGroup;
astore 0
start local 0 1: new java.lang.Thread
dup
aload 0
getstatic sun.java2d.Disposer.disposerInstance:Lsun/java2d/Disposer;
ldc "Java2D Disposer"
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
astore 1
start local 1 2: aload 1
aconst_null
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
3: aload 1
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
4: aload 1
bipush 10
invokevirtual java.lang.Thread.setPriority:(I)V
5: aload 1
invokevirtual java.lang.Thread.start:()V
6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 rootTG Ljava/lang/ThreadGroup;
2 7 1 t Ljava/lang/Thread;
}
SourceFile: "Disposer.java"
NestMembers:
sun.java2d.Disposer$1 sun.java2d.Disposer$PollDisposable
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
sun.java2d.Disposer$1
public abstract PollDisposable = sun.java2d.Disposer$PollDisposable of sun.java2d.Disposer