public class com.sun.javafx.property.adapter.Disposer implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.javafx.property.adapter.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.Map<java.lang.Object, java.lang.Runnable> records;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Runnable;>;
private static com.sun.javafx.property.adapter.Disposer disposerInstance;
descriptor: Lcom/sun/javafx/property/adapter/Disposer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putstatic com.sun.javafx.property.adapter.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
1: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putstatic com.sun.javafx.property.adapter.Disposer.records:Ljava/util/Map;
2: new com.sun.javafx.property.adapter.Disposer
dup
invokespecial com.sun.javafx.property.adapter.Disposer.<init>:()V
putstatic com.sun.javafx.property.adapter.Disposer.disposerInstance:Lcom/sun/javafx/property/adapter/Disposer;
3: new com.sun.javafx.property.adapter.Disposer$1
dup
invokespecial com.sun.javafx.property.adapter.Disposer$1.<init>:()V
4: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
5: return
LocalVariableTable:
Start End Slot Name Signature
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 Lcom/sun/javafx/property/adapter/Disposer;
public static void addRecord(java.lang.Object, java.lang.Runnable);
descriptor: (Ljava/lang/Object;Ljava/lang/Runnable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.ref.PhantomReference
dup
aload 0
getstatic com.sun.javafx.property.adapter.Disposer.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.PhantomReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 2
start local 2 1: getstatic com.sun.javafx.property.adapter.Disposer.records:Ljava/util/Map;
aload 2
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 target Ljava/lang/Object;
0 3 1 rec Ljava/lang/Runnable;
1 3 2 ref Ljava/lang/ref/PhantomReference;
MethodParameters:
Name Flags
target
rec
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
getstatic com.sun.javafx.property.adapter.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 com.sun.javafx.property.adapter.Disposer.records:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Runnable
astore 2
start local 2 3: aload 2
invokeinterface java.lang.Runnable.run:()V
end local 2 end local 1 4: goto 0
StackMap locals:
StackMap stack: java.lang.Exception
5: astore 1
start local 1 6: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Exception while removing reference: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: aload 1
invokevirtual java.lang.Exception.printStackTrace:()V
end local 1 8: goto 0
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/javafx/property/adapter/Disposer;
1 4 1 obj Ljava/lang/Object;
3 4 2 rec Ljava/lang/Runnable;
6 8 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
}
SourceFile: "Disposer.java"
NestMembers:
com.sun.javafx.property.adapter.Disposer$1
InnerClasses:
com.sun.javafx.property.adapter.Disposer$1