public abstract class sun.misc.Ref
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.misc.Ref
super_class: java.lang.Object
{
private java.lang.ref.SoftReference soft;
descriptor: Ljava/lang/ref/SoftReference;
flags: (0x0002) ACC_PRIVATE
public synchronized java.lang.Object get();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.misc.Ref.check:()Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnonnull 4
2: aload 0
invokevirtual sun.misc.Ref.reconstitute:()Ljava/lang/Object;
astore 1
3: aload 0
aload 1
invokevirtual sun.misc.Ref.setThing:(Ljava/lang/Object;)V
4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/misc/Ref;
1 5 1 t Ljava/lang/Object;
public abstract java.lang.Object reconstitute();
descriptor: ()Ljava/lang/Object;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public synchronized void flush();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.misc.Ref.soft:Ljava/lang/ref/SoftReference;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.ref.SoftReference.clear:()V
2: StackMap locals: java.lang.ref.SoftReference
StackMap stack:
aload 0
aconst_null
putfield sun.misc.Ref.soft:Ljava/lang/ref/SoftReference;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/misc/Ref;
1 4 1 s Ljava/lang/ref/SoftReference;
public synchronized void setThing(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.misc.Ref.flush:()V
1: aload 0
new java.lang.ref.SoftReference
dup
aload 1
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
putfield sun.misc.Ref.soft:Ljava/lang/ref/SoftReference;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/Ref;
0 3 1 thing Ljava/lang/Object;
MethodParameters:
Name Flags
thing
public synchronized java.lang.Object check();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.misc.Ref.soft:Ljava/lang/ref/SoftReference;
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
areturn
2: StackMap locals: java.lang.ref.SoftReference
StackMap stack:
aload 1
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/Ref;
1 3 1 s Ljava/lang/ref/SoftReference;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.misc.Ref.soft:Ljava/lang/ref/SoftReference;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/Ref;
public void <init>(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.misc.Ref.soft:Ljava/lang/ref/SoftReference;
2: aload 0
aload 1
invokevirtual sun.misc.Ref.setThing:(Ljava/lang/Object;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/misc/Ref;
0 4 1 thing Ljava/lang/Object;
MethodParameters:
Name Flags
thing
}
SourceFile: "Ref.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()