public final class java.lang.ref.Cleaner
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: java.lang.ref.Cleaner
super_class: java.lang.Object
{
final jdk.internal.ref.CleanerImpl impl;
descriptor: Ljdk/internal/ref/CleanerImpl;
flags: (0x0010) ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ref.Cleaner$1
dup
invokespecial java.lang.ref.Cleaner$1.<init>:()V
invokestatic jdk.internal.ref.CleanerImpl.setCleanerImplAccess:(Ljava/util/function/Function;)V
1: return
LocalVariableTable:
Start End Slot Name Signature
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 jdk.internal.ref.CleanerImpl
dup
invokespecial jdk.internal.ref.CleanerImpl.<init>:()V
putfield java.lang.ref.Cleaner.impl:Ljdk/internal/ref/CleanerImpl;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/lang/ref/Cleaner;
public static java.lang.ref.Cleaner create();
descriptor: ()Ljava/lang/ref/Cleaner;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: new java.lang.ref.Cleaner
dup
invokespecial java.lang.ref.Cleaner.<init>:()V
astore 0
start local 0 1: aload 0
getfield java.lang.ref.Cleaner.impl:Ljdk/internal/ref/CleanerImpl;
aload 0
aconst_null
invokevirtual jdk.internal.ref.CleanerImpl.start:(Ljava/lang/ref/Cleaner;Ljava/util/concurrent/ThreadFactory;)V
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 cleaner Ljava/lang/ref/Cleaner;
public static java.lang.ref.Cleaner create(java.util.concurrent.ThreadFactory);
descriptor: (Ljava/util/concurrent/ThreadFactory;)Ljava/lang/ref/Cleaner;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ldc "threadFactory"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: new java.lang.ref.Cleaner
dup
invokespecial java.lang.ref.Cleaner.<init>:()V
astore 1
start local 1 2: aload 1
getfield java.lang.ref.Cleaner.impl:Ljdk/internal/ref/CleanerImpl;
aload 1
aload 0
invokevirtual jdk.internal.ref.CleanerImpl.start:(Ljava/lang/ref/Cleaner;Ljava/util/concurrent/ThreadFactory;)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 threadFactory Ljava/util/concurrent/ThreadFactory;
2 4 1 cleaner Ljava/lang/ref/Cleaner;
MethodParameters:
Name Flags
threadFactory
public java.lang.ref.Cleaner$Cleanable register(java.lang.Object, java.lang.Runnable);
descriptor: (Ljava/lang/Object;Ljava/lang/Runnable;)Ljava/lang/ref/Cleaner$Cleanable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "obj"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 2
ldc "action"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: new jdk.internal.ref.CleanerImpl$PhantomCleanableRef
dup
aload 1
aload 0
aload 2
invokespecial jdk.internal.ref.CleanerImpl$PhantomCleanableRef.<init>:(Ljava/lang/Object;Ljava/lang/ref/Cleaner;Ljava/lang/Runnable;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/lang/ref/Cleaner;
0 3 1 obj Ljava/lang/Object;
0 3 2 action Ljava/lang/Runnable;
MethodParameters:
Name Flags
obj
action
}
SourceFile: "Cleaner.java"
NestMembers:
java.lang.ref.Cleaner$1 java.lang.ref.Cleaner$Cleanable
InnerClasses:
java.lang.ref.Cleaner$1
public abstract Cleanable = java.lang.ref.Cleaner$Cleanable of java.lang.ref.Cleaner
public final PhantomCleanableRef = jdk.internal.ref.CleanerImpl$PhantomCleanableRef of jdk.internal.ref.CleanerImpl