public class org.jruby.RubyGC
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.RubyGC
super_class: java.lang.Object
{
private static volatile boolean gcDisabled;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static volatile boolean stress;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic org.jruby.RubyGC.gcDisabled:Z
1: iconst_0
putstatic org.jruby.RubyGC.stress:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyGC;
public static org.jruby.RubyModule createGCModule(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyModule;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "GC"
invokevirtual org.jruby.Ruby.defineModule:(Ljava/lang/String;)Lorg/jruby/RubyModule;
astore 1
start local 1 1: aload 0
aload 1
invokevirtual org.jruby.Ruby.setGC:(Lorg/jruby/RubyModule;)V
2: aload 1
ldc Lorg/jruby/RubyGC;
invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
1 4 1 result Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
runtime
public static org.jruby.runtime.builtin.IRubyObject start(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
public static org.jruby.runtime.builtin.IRubyObject garbage_collect(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
recv
public static org.jruby.runtime.builtin.IRubyObject enable(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
getstatic org.jruby.common.IRubyWarnings$ID.GC_ENABLE_UNIMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "GC.enable"
invokestatic org.jruby.RubyGC.emptyImplementationWarning:(Lorg/jruby/Ruby;Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
2: getstatic org.jruby.RubyGC.gcDisabled:Z
istore 3
start local 3 3: iconst_0
putstatic org.jruby.RubyGC.gcDisabled:Z
4: aload 2
iload 3
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 context Lorg/jruby/runtime/ThreadContext;
0 5 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 5 2 runtime Lorg/jruby/Ruby;
3 5 3 old Z
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
public static org.jruby.runtime.builtin.IRubyObject disable(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
getstatic org.jruby.common.IRubyWarnings$ID.GC_DISABLE_UNIMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "GC.disable"
invokestatic org.jruby.RubyGC.emptyImplementationWarning:(Lorg/jruby/Ruby;Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
2: getstatic org.jruby.RubyGC.gcDisabled:Z
istore 3
start local 3 3: iconst_1
putstatic org.jruby.RubyGC.gcDisabled:Z
4: aload 2
iload 3
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 context Lorg/jruby/runtime/ThreadContext;
0 5 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 5 2 runtime Lorg/jruby/Ruby;
3 5 3 old Z
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
public static org.jruby.runtime.builtin.IRubyObject stress(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
getstatic org.jruby.RubyGC.stress:Z
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
public static org.jruby.runtime.builtin.IRubyObject stress_set(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
getstatic org.jruby.common.IRubyWarnings$ID.GC_STRESS_UNIMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "GC.stress="
invokestatic org.jruby.RubyGC.emptyImplementationWarning:(Lorg/jruby/Ruby;Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
2: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
putstatic org.jruby.RubyGC.stress:Z
3: aload 3
getstatic org.jruby.RubyGC.stress:Z
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 4 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 4 3 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"stress="}, module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
arg
public static org.jruby.runtime.builtin.IRubyObject count(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: invokestatic org.jruby.RubyGC.getCollectionCount:()I
istore 2
start local 2 1: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iload 2
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
2: areturn
end local 2 3: StackMap locals:
StackMap stack: java.lang.Throwable
pop
4: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyFixnum.minus_one:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 context Lorg/jruby/runtime/ThreadContext;
0 5 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 3 2 count I
Exception table:
from to target type
0 2 3 Class java.lang.Throwable
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
private static void emptyImplementationWarning(org.jruby.Ruby, org.jruby.common.IRubyWarnings$ID, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
aload 1
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " does nothing on JRuby"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.common.RubyWarnings.warnOnce:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 runtime Lorg/jruby/Ruby;
0 2 1 id Lorg/jruby/common/IRubyWarnings$ID;
0 2 2 name Ljava/lang/String;
MethodParameters:
Name Flags
runtime
id
name
public static int getCollectionCount();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=0
0: iconst_0
istore 0
start local 0 1: invokestatic java.lang.management.ManagementFactory.getGarbageCollectorMXBeans:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: int top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.management.GarbageCollectorMXBean
astore 1
start local 1 3: iload 0
i2l
aload 1
invokeinterface java.lang.management.GarbageCollectorMXBean.getCollectionCount:()J
ladd
l2i
istore 0
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 count I
3 4 1 bean Ljava/lang/management/GarbageCollectorMXBean;
public static long getCollectionTime();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=0
0: lconst_0
lstore 0
start local 0 1: invokestatic java.lang.management.ManagementFactory.getGarbageCollectorMXBeans:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: long top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.management.GarbageCollectorMXBean
astore 2
start local 2 3: lload 0
aload 2
invokeinterface java.lang.management.GarbageCollectorMXBean.getCollectionTime:()J
ladd
lstore 0
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: lload 0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 time J
3 4 2 bean Ljava/lang/management/GarbageCollectorMXBean;
}
SourceFile: "RubyGC.java"
InnerClasses:
public final ID = org.jruby.common.IRubyWarnings$ID of org.jruby.common.IRubyWarnings
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyModule(name = {"GC"})