public class com.sun.media.jfxmediaimpl.MediaDisposer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.media.jfxmediaimpl.MediaDisposer
super_class: java.lang.Object
{
private final java.lang.ref.ReferenceQueue<java.lang.Object> purgatory;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
private final java.util.Map<java.lang.ref.Reference, com.sun.media.jfxmediaimpl.MediaDisposer$Disposable> disposers;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/ref/Reference;Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;>;
private static com.sun.media.jfxmediaimpl.MediaDisposer theDisposinator;
descriptor: Lcom/sun/media/jfxmediaimpl/MediaDisposer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
public static void addResourceDisposer(java.lang.Object, java.lang.Object, com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposer);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Lcom/sun/media/jfxmediaimpl/MediaDisposer$ResourceDisposer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: invokestatic com.sun.media.jfxmediaimpl.MediaDisposer.disposinator:()Lcom/sun/media/jfxmediaimpl/MediaDisposer;
aload 0
aload 1
aload 2
invokevirtual com.sun.media.jfxmediaimpl.MediaDisposer.implAddResourceDisposer:(Ljava/lang/Object;Ljava/lang/Object;Lcom/sun/media/jfxmediaimpl/MediaDisposer$ResourceDisposer;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 referent Ljava/lang/Object;
0 2 1 resource Ljava/lang/Object;
0 2 2 disposer Lcom/sun/media/jfxmediaimpl/MediaDisposer$ResourceDisposer;
MethodParameters:
Name Flags
referent
resource
disposer
public static void removeResourceDisposer(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic com.sun.media.jfxmediaimpl.MediaDisposer.disposinator:()Lcom/sun/media/jfxmediaimpl/MediaDisposer;
aload 0
invokevirtual com.sun.media.jfxmediaimpl.MediaDisposer.implRemoveResourceDisposer:(Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 resource Ljava/lang/Object;
MethodParameters:
Name Flags
resource
public static void addDisposable(java.lang.Object, com.sun.media.jfxmediaimpl.MediaDisposer$Disposable);
descriptor: (Ljava/lang/Object;Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.sun.media.jfxmediaimpl.MediaDisposer.disposinator:()Lcom/sun/media/jfxmediaimpl/MediaDisposer;
aload 0
aload 1
invokevirtual com.sun.media.jfxmediaimpl.MediaDisposer.implAddDisposable:(Ljava/lang/Object;Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 referent Ljava/lang/Object;
0 2 1 disposable Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;
MethodParameters:
Name Flags
referent
disposable
private static synchronized com.sun.media.jfxmediaimpl.MediaDisposer disposinator();
descriptor: ()Lcom/sun/media/jfxmediaimpl/MediaDisposer;
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=0
0: getstatic com.sun.media.jfxmediaimpl.MediaDisposer.theDisposinator:Lcom/sun/media/jfxmediaimpl/MediaDisposer;
ifnonnull 8
1: new com.sun.media.jfxmediaimpl.MediaDisposer
dup
invokespecial com.sun.media.jfxmediaimpl.MediaDisposer.<init>:()V
putstatic com.sun.media.jfxmediaimpl.MediaDisposer.theDisposinator:Lcom/sun/media/jfxmediaimpl/MediaDisposer;
2: new java.lang.Thread
dup
3: invokedynamic run()Ljava/lang/Runnable;
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:
()V
com/sun/media/jfxmediaimpl/MediaDisposer.lambda$0()V (6)
()V
4: ldc "Media Resource Disposer"
5: invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
astore 0
start local 0 6: aload 0
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
7: aload 0
invokevirtual java.lang.Thread.start:()V
end local 0 8: StackMap locals:
StackMap stack:
getstatic com.sun.media.jfxmediaimpl.MediaDisposer.theDisposinator:Lcom/sun/media/jfxmediaimpl/MediaDisposer;
areturn
LocalVariableTable:
Start End Slot Name Signature
6 8 0 disposerThread Ljava/lang/Thread;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield com.sun.media.jfxmediaimpl.MediaDisposer.purgatory:Ljava/lang/ref/ReferenceQueue;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/media/jfxmediaimpl/MediaDisposer;
private void disposerLoop();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.purgatory:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.remove:()Ljava/lang/ref/Reference;
astore 1
start local 1 1: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
dup
astore 3
monitorenter
2: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.sun.media.jfxmediaimpl.MediaDisposer$Disposable
astore 2
start local 2 3: aload 3
monitorexit
4: goto 7
end local 2 StackMap locals: com.sun.media.jfxmediaimpl.MediaDisposer java.lang.ref.Reference top java.util.Map
StackMap stack: java.lang.Throwable
5: aload 3
monitorexit
6: athrow
start local 2 7: StackMap locals: com.sun.media.jfxmediaimpl.MediaDisposer java.lang.ref.Reference com.sun.media.jfxmediaimpl.MediaDisposer$Disposable
StackMap stack:
aload 1
invokevirtual java.lang.ref.Reference.clear:()V
8: aload 2
ifnull 10
9: aload 2
invokeinterface com.sun.media.jfxmediaimpl.MediaDisposer$Disposable.dispose:()V
10: StackMap locals:
StackMap stack:
aconst_null
astore 1
11: aconst_null
astore 2
end local 2 end local 1 12: goto 0
StackMap locals: com.sun.media.jfxmediaimpl.MediaDisposer
StackMap stack: java.lang.InterruptedException
13: pop
14: iconst_1
invokestatic com.sun.media.jfxmedia.logging.Logger.canLog:(I)Z
ifeq 0
15: iconst_1
ldc Lcom/sun/media/jfxmediaimpl/MediaDisposer;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
16: ldc "disposerLoop"
ldc "Disposer loop interrupted, terminating"
17: invokestatic com.sun.media.jfxmedia.logging.Logger.logMsg:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
18: goto 0
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/sun/media/jfxmediaimpl/MediaDisposer;
1 12 1 denizen Ljava/lang/ref/Reference;
3 5 2 disposer Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;
7 12 2 disposer Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;
Exception table:
from to target type
2 4 5 any
5 6 5 any
0 12 13 Class java.lang.InterruptedException
private void implAddResourceDisposer(java.lang.Object, java.lang.Object, com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposer);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Lcom/sun/media/jfxmediaimpl/MediaDisposer$ResourceDisposer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.ref.PhantomReference
dup
aload 1
aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.purgatory:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.PhantomReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 4
start local 4 1: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
dup
astore 5
monitorenter
2: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
aload 4
new com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposerRecord
dup
aload 2
aload 3
invokespecial com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposerRecord.<init>:(Ljava/lang/Object;Lcom/sun/media/jfxmediaimpl/MediaDisposer$ResourceDisposer;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 5
monitorexit
4: goto 7
StackMap locals: com.sun.media.jfxmediaimpl.MediaDisposer java.lang.Object java.lang.Object com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposer java.lang.ref.Reference java.util.Map
StackMap stack: java.lang.Throwable
5: aload 5
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/media/jfxmediaimpl/MediaDisposer;
0 8 1 referent Ljava/lang/Object;
0 8 2 resource Ljava/lang/Object;
0 8 3 disposer Lcom/sun/media/jfxmediaimpl/MediaDisposer$ResourceDisposer;
1 8 4 denizen Ljava/lang/ref/Reference;
Exception table:
from to target type
2 4 5 any
5 6 5 any
MethodParameters:
Name Flags
referent
resource
disposer
private void implRemoveResourceDisposer(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
dup
astore 3
monitorenter
2: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: com.sun.media.jfxmediaimpl.MediaDisposer java.lang.Object java.lang.ref.Reference java.util.Map top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 4: aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.sun.media.jfxmediaimpl.MediaDisposer$Disposable
astore 6
start local 6 5: aload 6
instanceof com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposerRecord
ifeq 10
6: aload 6
checkcast com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposerRecord
astore 7
start local 7 7: aload 7
getfield com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposerRecord.resource:Ljava/lang/Object;
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 10
8: aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.ref.Reference
astore 2
9: goto 11
end local 7 end local 6 end local 4 10: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
11: StackMap locals: com.sun.media.jfxmediaimpl.MediaDisposer java.lang.Object java.lang.ref.Reference java.util.Map
StackMap stack:
aload 2
ifnull 13
12: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
13: StackMap locals:
StackMap stack:
aload 3
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 3
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/media/jfxmediaimpl/MediaDisposer;
0 18 1 resource Ljava/lang/Object;
1 18 2 resourceKey Ljava/lang/ref/Reference;
4 10 4 entry Ljava/util/Map$Entry<Ljava/lang/ref/Reference;Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;>;
5 10 6 disposer Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;
7 10 7 rd Lcom/sun/media/jfxmediaimpl/MediaDisposer$ResourceDisposerRecord;
Exception table:
from to target type
2 14 15 any
15 16 15 any
MethodParameters:
Name Flags
resource
private void implAddDisposable(java.lang.Object, com.sun.media.jfxmediaimpl.MediaDisposer$Disposable);
descriptor: (Ljava/lang/Object;Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.ref.PhantomReference
dup
aload 1
aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.purgatory:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.PhantomReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 3
start local 3 1: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
dup
astore 4
monitorenter
2: aload 0
getfield com.sun.media.jfxmediaimpl.MediaDisposer.disposers:Ljava/util/Map;
aload 3
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 4
monitorexit
4: goto 7
StackMap locals: com.sun.media.jfxmediaimpl.MediaDisposer java.lang.Object com.sun.media.jfxmediaimpl.MediaDisposer$Disposable java.lang.ref.Reference java.util.Map
StackMap stack: java.lang.Throwable
5: aload 4
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/media/jfxmediaimpl/MediaDisposer;
0 8 1 referent Ljava/lang/Object;
0 8 2 disposer Lcom/sun/media/jfxmediaimpl/MediaDisposer$Disposable;
1 8 3 denizen Ljava/lang/ref/Reference;
Exception table:
from to target type
2 4 5 any
5 6 5 any
MethodParameters:
Name Flags
referent
disposer
private static void lambda$0();
descriptor: ()V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.sun.media.jfxmediaimpl.MediaDisposer.theDisposinator:Lcom/sun/media/jfxmediaimpl/MediaDisposer;
invokevirtual com.sun.media.jfxmediaimpl.MediaDisposer.disposerLoop:()V
1: return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "MediaDisposer.java"
NestMembers:
com.sun.media.jfxmediaimpl.MediaDisposer$Disposable com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposer com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposerRecord
InnerClasses:
public abstract Disposable = com.sun.media.jfxmediaimpl.MediaDisposer$Disposable of com.sun.media.jfxmediaimpl.MediaDisposer
public abstract ResourceDisposer = com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposer of com.sun.media.jfxmediaimpl.MediaDisposer
private ResourceDisposerRecord = com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposerRecord of com.sun.media.jfxmediaimpl.MediaDisposer
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map