public final class jdk.internal.ref.CleanerImpl implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.ref.CleanerImpl
super_class: java.lang.Object
{
private static java.util.function.Function<java.lang.ref.Cleaner, jdk.internal.ref.CleanerImpl> cleanerImplAccess;
descriptor: Ljava/util/function/Function;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/function/Function<Ljava/lang/ref/Cleaner;Ljdk/internal/ref/CleanerImpl;>;
final jdk.internal.ref.PhantomCleanable<?> phantomCleanableList;
descriptor: Ljdk/internal/ref/PhantomCleanable;
flags: (0x0010) ACC_FINAL
Signature: Ljdk/internal/ref/PhantomCleanable<*>;
final jdk.internal.ref.WeakCleanable<?> weakCleanableList;
descriptor: Ljdk/internal/ref/WeakCleanable;
flags: (0x0010) ACC_FINAL
Signature: Ljdk/internal/ref/WeakCleanable<*>;
final jdk.internal.ref.SoftCleanable<?> softCleanableList;
descriptor: Ljdk/internal/ref/SoftCleanable;
flags: (0x0010) ACC_FINAL
Signature: Ljdk/internal/ref/SoftCleanable<*>;
final java.lang.ref.ReferenceQueue<java.lang.Object> queue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0010) ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic jdk.internal.ref.CleanerImpl.cleanerImplAccess:Ljava/util/function/Function;
return
LocalVariableTable:
Start End Slot Name Signature
public static void setCleanerImplAccess(java.util.function.Function<java.lang.ref.Cleaner, jdk.internal.ref.CleanerImpl>);
descriptor: (Ljava/util/function/Function;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic jdk.internal.ref.CleanerImpl.cleanerImplAccess:Ljava/util/function/Function;
ifnonnull 3
1: aload 0
putstatic jdk.internal.ref.CleanerImpl.cleanerImplAccess:Ljava/util/function/Function;
2: goto 4
3: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
ldc "cleanerImplAccess"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 access Ljava/util/function/Function<Ljava/lang/ref/Cleaner;Ljdk/internal/ref/CleanerImpl;>;
Signature: (Ljava/util/function/Function<Ljava/lang/ref/Cleaner;Ljdk/internal/ref/CleanerImpl;>;)V
MethodParameters:
Name Flags
access
static jdk.internal.ref.CleanerImpl getCleanerImpl(java.lang.ref.Cleaner);
descriptor: (Ljava/lang/ref/Cleaner;)Ljdk/internal/ref/CleanerImpl;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.internal.ref.CleanerImpl.cleanerImplAccess:Ljava/util/function/Function;
aload 0
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.ref.CleanerImpl
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cleaner Ljava/lang/ref/Cleaner;
MethodParameters:
Name Flags
cleaner
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 jdk.internal.ref.CleanerImpl.queue:Ljava/lang/ref/ReferenceQueue;
2: aload 0
new jdk.internal.ref.CleanerImpl$PhantomCleanableRef
dup
invokespecial jdk.internal.ref.CleanerImpl$PhantomCleanableRef.<init>:()V
putfield jdk.internal.ref.CleanerImpl.phantomCleanableList:Ljdk/internal/ref/PhantomCleanable;
3: aload 0
new jdk.internal.ref.CleanerImpl$WeakCleanableRef
dup
invokespecial jdk.internal.ref.CleanerImpl$WeakCleanableRef.<init>:()V
putfield jdk.internal.ref.CleanerImpl.weakCleanableList:Ljdk/internal/ref/WeakCleanable;
4: aload 0
new jdk.internal.ref.CleanerImpl$SoftCleanableRef
dup
invokespecial jdk.internal.ref.CleanerImpl$SoftCleanableRef.<init>:()V
putfield jdk.internal.ref.CleanerImpl.softCleanableList:Ljdk/internal/ref/SoftCleanable;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/ref/CleanerImpl;
public void start(java.lang.ref.Cleaner, java.util.concurrent.ThreadFactory);
descriptor: (Ljava/lang/ref/Cleaner;Ljava/util/concurrent/ThreadFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic jdk.internal.ref.CleanerImpl.getCleanerImpl:(Ljava/lang/ref/Cleaner;)Ljdk/internal/ref/CleanerImpl;
aload 0
if_acmpeq 2
1: new java.lang.AssertionError
dup
ldc "wrong cleaner"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
new jdk.internal.ref.CleanerImpl$CleanerCleanable
aload 1
invokespecial jdk.internal.ref.CleanerImpl$CleanerCleanable.<init>:(Ljava/lang/ref/Cleaner;)V
3: aload 2
ifnonnull 5
4: invokestatic jdk.internal.ref.CleanerImpl$InnocuousThreadFactory.factory:()Ljava/util/concurrent/ThreadFactory;
astore 2
5: StackMap locals:
StackMap stack:
aload 2
aload 0
invokeinterface java.util.concurrent.ThreadFactory.newThread:(Ljava/lang/Runnable;)Ljava/lang/Thread;
astore 3
start local 3 6: aload 3
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
7: aload 3
invokevirtual java.lang.Thread.start:()V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/ref/CleanerImpl;
0 9 1 cleaner Ljava/lang/ref/Cleaner;
0 9 2 threadFactory Ljava/util/concurrent/ThreadFactory;
6 9 3 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
cleaner
threadFactory
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
instanceof jdk.internal.misc.InnocuousThread
ifeq 3
2: aload 1
checkcast jdk.internal.misc.InnocuousThread
goto 4
3: StackMap locals: java.lang.Thread
StackMap stack:
aconst_null
4: StackMap locals:
StackMap stack: jdk.internal.misc.InnocuousThread
astore 2
start local 2 5: goto 13
6: StackMap locals: jdk.internal.misc.InnocuousThread
StackMap stack:
aload 2
ifnull 8
7: aload 2
invokevirtual jdk.internal.misc.InnocuousThread.eraseThreadLocals:()V
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.ref.CleanerImpl.queue:Ljava/lang/ref/ReferenceQueue;
ldc 60000
invokevirtual java.lang.ref.ReferenceQueue.remove:(J)Ljava/lang/ref/Reference;
checkcast java.lang.ref.Cleaner$Cleanable
astore 3
start local 3 9: aload 3
ifnull 13
10: aload 3
invokeinterface java.lang.ref.Cleaner$Cleanable.clean:()V
end local 3 11: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
12: pop
13: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.ref.CleanerImpl.phantomCleanableList:Ljdk/internal/ref/PhantomCleanable;
invokevirtual jdk.internal.ref.PhantomCleanable.isListEmpty:()Z
ifeq 6
14: aload 0
getfield jdk.internal.ref.CleanerImpl.weakCleanableList:Ljdk/internal/ref/WeakCleanable;
invokevirtual jdk.internal.ref.WeakCleanable.isListEmpty:()Z
ifeq 6
15: aload 0
getfield jdk.internal.ref.CleanerImpl.softCleanableList:Ljdk/internal/ref/SoftCleanable;
invokevirtual jdk.internal.ref.SoftCleanable.isListEmpty:()Z
ifeq 6
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/internal/ref/CleanerImpl;
1 17 1 t Ljava/lang/Thread;
5 17 2 mlThread Ljdk/internal/misc/InnocuousThread;
9 11 3 ref Ljava/lang/ref/Cleaner$Cleanable;
Exception table:
from to target type
8 11 12 Class java.lang.Throwable
}
SourceFile: "CleanerImpl.java"
NestMembers:
jdk.internal.ref.CleanerImpl$CleanerCleanable jdk.internal.ref.CleanerImpl$InnocuousThreadFactory jdk.internal.ref.CleanerImpl$InnocuousThreadFactory$1 jdk.internal.ref.CleanerImpl$PhantomCleanableRef jdk.internal.ref.CleanerImpl$SoftCleanableRef jdk.internal.ref.CleanerImpl$WeakCleanableRef
InnerClasses:
public abstract Cleanable = java.lang.ref.Cleaner$Cleanable of java.lang.ref.Cleaner
final CleanerCleanable = jdk.internal.ref.CleanerImpl$CleanerCleanable of jdk.internal.ref.CleanerImpl
final InnocuousThreadFactory = jdk.internal.ref.CleanerImpl$InnocuousThreadFactory of jdk.internal.ref.CleanerImpl
public final PhantomCleanableRef = jdk.internal.ref.CleanerImpl$PhantomCleanableRef of jdk.internal.ref.CleanerImpl
public final SoftCleanableRef = jdk.internal.ref.CleanerImpl$SoftCleanableRef of jdk.internal.ref.CleanerImpl
public final WeakCleanableRef = jdk.internal.ref.CleanerImpl$WeakCleanableRef of jdk.internal.ref.CleanerImpl