public class org.jruby.RubyBasicObject$Finalizer implements org.jruby.Finalizable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.RubyBasicObject$Finalizer
super_class: java.lang.Object
{
private final org.jruby.runtime.builtin.IRubyObject id;
descriptor: Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicBoolean finalized;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.jruby.runtime.builtin.IRubyObject firstFinalizer;
descriptor: Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
private java.util.List<org.jruby.runtime.builtin.IRubyObject> finalizers;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/jruby/runtime/builtin/IRubyObject;>;
public void <init>(org.jruby.RubyFixnum);
descriptor: (Lorg/jruby/RubyFixnum;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jruby.RubyBasicObject$Finalizer.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyBasicObject$Finalizer;
0 2 1 id Lorg/jruby/RubyFixnum;
MethodParameters:
Name Flags
id
void <init>(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.RubyBasicObject$Finalizer.id:Lorg/jruby/runtime/builtin/IRubyObject;
2: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.jruby.RubyBasicObject$Finalizer.finalized:Ljava/util/concurrent/atomic/AtomicBoolean;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyBasicObject$Finalizer;
0 4 1 id Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
id
public void addFinalizer(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.RubyBasicObject$Finalizer.firstFinalizer:Lorg/jruby/runtime/builtin/IRubyObject;
ifnonnull 3
1: aload 0
aload 1
putfield org.jruby.RubyBasicObject$Finalizer.firstFinalizer:Lorg/jruby/runtime/builtin/IRubyObject;
2: goto 5
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyBasicObject$Finalizer.finalizers:Ljava/util/List;
ifnonnull 4
aload 0
new java.util.ArrayList
dup
iconst_4
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.jruby.RubyBasicObject$Finalizer.finalizers:Ljava/util/List;
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyBasicObject$Finalizer.finalizers:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/RubyBasicObject$Finalizer;
0 6 1 finalizer Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
finalizer
public void removeFinalizers();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.jruby.RubyBasicObject$Finalizer.firstFinalizer:Lorg/jruby/runtime/builtin/IRubyObject;
1: aload 0
aconst_null
putfield org.jruby.RubyBasicObject$Finalizer.finalizers:Ljava/util/List;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyBasicObject$Finalizer;
public void finalize();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyBasicObject$Finalizer.finalized:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 8
1: aload 0
getfield org.jruby.RubyBasicObject$Finalizer.firstFinalizer:Lorg/jruby/runtime/builtin/IRubyObject;
ifnull 2
aload 0
aload 0
getfield org.jruby.RubyBasicObject$Finalizer.firstFinalizer:Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyBasicObject$Finalizer.callFinalizer:(Lorg/jruby/runtime/builtin/IRubyObject;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyBasicObject$Finalizer.finalizers:Ljava/util/List;
ifnull 8
3: iconst_0
istore 1
start local 1 4: goto 7
5: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.jruby.RubyBasicObject$Finalizer.finalizers:Ljava/util/List;
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
invokevirtual org.jruby.RubyBasicObject$Finalizer.callFinalizer:(Lorg/jruby/runtime/builtin/IRubyObject;)V
6: iinc 1 1
StackMap locals:
StackMap stack:
7: iload 1
aload 0
getfield org.jruby.RubyBasicObject$Finalizer.finalizers:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 1 8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/RubyBasicObject$Finalizer;
4 8 1 i I
private void callFinalizer(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
astore 2
start local 2 1: aload 2
invokestatic org.jruby.RubyBasicObject.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$BasicObjectSites;
getfield org.jruby.runtime.JavaSites$BasicObjectSites.call:Lorg/jruby/runtime/CallSite;
aload 2
aload 1
aload 1
aload 0
getfield org.jruby.RubyBasicObject$Finalizer.id:Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.runtime.CallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyBasicObject$Finalizer;
0 3 1 finalizer Lorg/jruby/runtime/builtin/IRubyObject;
1 3 2 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
finalizer
}
SourceFile: "RubyBasicObject.java"
NestHost: org.jruby.RubyBasicObject
InnerClasses:
public Finalizer = org.jruby.RubyBasicObject$Finalizer of org.jruby.RubyBasicObject
public BasicObjectSites = org.jruby.runtime.JavaSites$BasicObjectSites of org.jruby.runtime.JavaSites