public class org.jruby.management.Runtime implements org.jruby.management.RuntimeMBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.management.Runtime
super_class: java.lang.Object
{
private final java.lang.ref.SoftReference<org.jruby.Ruby> ruby;
descriptor: Ljava/lang/ref/SoftReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/SoftReference<Lorg/jruby/Ruby;>;
private static final com.headius.backport9.stack.StackWalker WALKER;
descriptor: Lcom/headius/backport9/stack/StackWalker;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.jruby.runtime.ThreadContext.WALKER:Lcom/headius/backport9/stack/StackWalker;
putstatic org.jruby.management.Runtime.WALKER:Lcom/headius/backport9/stack/StackWalker;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x0001) ACC_PUBLIC
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
new java.lang.ref.SoftReference
dup
aload 1
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
putfield org.jruby.management.Runtime.ruby:Ljava/lang/ref/SoftReference;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/management/Runtime;
0 3 1 ruby Lorg/jruby/Ruby;
MethodParameters:
Name Flags
ruby
public int getExceptionCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.Runtime.ruby:Ljava/lang/ref/SoftReference;
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast org.jruby.Ruby
invokevirtual org.jruby.Ruby.getExceptionCount:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/management/Runtime;
public int getBacktraceCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.Runtime.ruby:Ljava/lang/ref/SoftReference;
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast org.jruby.Ruby
invokevirtual org.jruby.Ruby.getBacktraceCount:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/management/Runtime;
public int getCallerCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.Runtime.ruby:Ljava/lang/ref/SoftReference;
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast org.jruby.Ruby
invokevirtual org.jruby.Ruby.getCallerCount:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/management/Runtime;
public java.lang.String threadDump();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.jruby.runtime.backtrace.TraceType$Gather.NORMAL:Lorg/jruby/runtime/backtrace/TraceType$Gather;
invokevirtual org.jruby.management.Runtime.dumpThreads:(Lorg/jruby/runtime/backtrace/TraceType$Gather;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/management/Runtime;
public java.lang.String rawThreadDump();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.jruby.runtime.backtrace.TraceType$Gather.RAW:Lorg/jruby/runtime/backtrace/TraceType$Gather;
invokevirtual org.jruby.management.Runtime.dumpThreads:(Lorg/jruby/runtime/backtrace/TraceType$Gather;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/management/Runtime;
public java.lang.String fullThreadDump();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.jruby.runtime.backtrace.TraceType$Gather.FULL:Lorg/jruby/runtime/backtrace/TraceType$Gather;
invokevirtual org.jruby.management.Runtime.dumpThreads:(Lorg/jruby/runtime/backtrace/TraceType$Gather;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/management/Runtime;
public java.lang.String dumpThreads(org.jruby.runtime.backtrace.TraceType$Gather);
descriptor: (Lorg/jruby/runtime/backtrace/TraceType$Gather;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.management.Runtime.ruby:Ljava/lang/ref/SoftReference;
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast org.jruby.Ruby
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.getThreadService:()Lorg/jruby/internal/runtime/ThreadService;
invokevirtual org.jruby.internal.runtime.ThreadService.getActiveRubyThreads:()[Lorg/jruby/RubyThread;
astore 3
start local 3 2: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 4
start local 4 3: new java.io.PrintWriter
dup
aload 4
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 5
start local 5 4: aload 5
new java.lang.StringBuilder
dup
ldc "All threads known to Ruby instance "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Object.hashCode:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
5: aload 5
invokevirtual java.io.PrintWriter.println:()V
6: aload 3
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 10
StackMap locals: org.jruby.management.Runtime org.jruby.runtime.backtrace.TraceType$Gather org.jruby.Ruby org.jruby.RubyThread[] java.io.StringWriter java.io.PrintWriter top int int org.jruby.RubyThread[]
StackMap stack:
7: aload 9
iload 7
aaload
astore 6
start local 6 8: aload 2
aload 6
aload 1
aload 5
invokestatic org.jruby.management.Runtime.dumpThread:(Lorg/jruby/Ruby;Lorg/jruby/RubyThread;Lorg/jruby/runtime/backtrace/TraceType$Gather;Ljava/io/PrintWriter;)V
end local 6 9: iinc 7 1
StackMap locals:
StackMap stack:
10: iload 7
iload 8
if_icmplt 7
11: aload 4
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/management/Runtime;
0 12 1 gather Lorg/jruby/runtime/backtrace/TraceType$Gather;
1 12 2 ruby Lorg/jruby/Ruby;
2 12 3 thrs [Lorg/jruby/RubyThread;
3 12 4 sw Ljava/io/StringWriter;
4 12 5 pw Ljava/io/PrintWriter;
8 9 6 th Lorg/jruby/RubyThread;
MethodParameters:
Name Flags
gather
private static void dumpThread(org.jruby.Ruby, org.jruby.RubyThread, org.jruby.runtime.backtrace.TraceType$Gather, java.io.PrintWriter);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyThread;Lorg/jruby/runtime/backtrace/TraceType$Gather;Ljava/io/PrintWriter;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
new java.lang.StringBuilder
dup
ldc "Thread: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.jruby.RubyThread.getNativeThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
1: aload 3
ldc "Stack:"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
2: aload 1
invokevirtual org.jruby.RubyThread.getContext:()Lorg/jruby/runtime/ThreadContext;
astore 4
start local 4 3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 5
start local 5 4: aload 4
ifnull 13
5: getstatic org.jruby.runtime.backtrace.TraceType$Format.JRUBY:Lorg/jruby/runtime/backtrace/TraceType$Format;
6: getstatic org.jruby.management.Runtime.WALKER:Lcom/headius/backport9/stack/StackWalker;
aload 1
invokevirtual org.jruby.RubyThread.getNativeThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getStackTrace:()[Ljava/lang/StackTraceElement;
aload 2
aload 4
invokedynamic apply(Lorg/jruby/runtime/backtrace/TraceType$Gather;Lorg/jruby/runtime/ThreadContext;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/jruby/management/Runtime.lambda$0(Lorg/jruby/runtime/backtrace/TraceType$Gather;Lorg/jruby/runtime/ThreadContext;Ljava/util/stream/Stream;)Lorg/jruby/runtime/backtrace/BacktraceData; (6)
(Ljava/util/stream/Stream;)Lorg/jruby/runtime/backtrace/BacktraceData;
invokeinterface com.headius.backport9.stack.StackWalker.walk:([Ljava/lang/StackTraceElement;Ljava/util/function/Function;)Ljava/lang/Object;
checkcast org.jruby.runtime.backtrace.BacktraceData
aload 0
invokevirtual org.jruby.runtime.backtrace.BacktraceData.getBacktrace:(Lorg/jruby/Ruby;)[Lorg/jruby/runtime/backtrace/RubyStackTraceElement;
7: aload 5
8: iconst_0
9: invokevirtual org.jruby.runtime.backtrace.TraceType$Format.renderBacktrace:([Lorg/jruby/runtime/backtrace/RubyStackTraceElement;Ljava/lang/StringBuilder;Z)V
10: aload 3
aload 5
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
11: aload 5
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
12: goto 14
13: StackMap locals: org.jruby.runtime.ThreadContext java.lang.StringBuilder
StackMap stack:
aload 3
ldc " [no longer alive]"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
14: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.PrintWriter.println:()V
15: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 ruby Lorg/jruby/Ruby;
0 16 1 th Lorg/jruby/RubyThread;
0 16 2 gather Lorg/jruby/runtime/backtrace/TraceType$Gather;
0 16 3 pw Ljava/io/PrintWriter;
3 16 4 tc Lorg/jruby/runtime/ThreadContext;
4 16 5 builder Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
ruby
th
gather
pw
public java.lang.String executeRuby(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iconst_1
anewarray java.lang.String
astore 2
start local 2 1: new org.jruby.management.Runtime$1
dup
aload 0
aload 2
aload 1
invokespecial org.jruby.management.Runtime$1.<init>:(Lorg/jruby/management/Runtime;[Ljava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 2: aload 3
invokevirtual java.lang.Thread.start:()V
3: aload 3
invokevirtual java.lang.Thread.join:()V
4: goto 6
StackMap locals: org.jruby.management.Runtime java.lang.String java.lang.String[] java.lang.Thread
StackMap stack: java.lang.InterruptedException
5: pop
6: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/management/Runtime;
0 7 1 code Ljava/lang/String;
1 7 2 result [Ljava/lang/String;
2 7 3 t Ljava/lang/Thread;
Exception table:
from to target type
3 4 5 Class java.lang.InterruptedException
MethodParameters:
Name Flags
code final
private static org.jruby.runtime.backtrace.BacktraceData lambda$0(org.jruby.runtime.backtrace.TraceType$Gather, org.jruby.runtime.ThreadContext, java.util.stream.Stream);
descriptor: (Lorg/jruby/runtime/backtrace/TraceType$Gather;Lorg/jruby/runtime/ThreadContext;Ljava/util/stream/Stream;)Lorg/jruby/runtime/backtrace/BacktraceData;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.jruby.runtime.backtrace.TraceType$Gather.getBacktraceData:(Lorg/jruby/runtime/ThreadContext;Ljava/util/stream/Stream;)Lorg/jruby/runtime/backtrace/BacktraceData;
areturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 stream Ljava/util/stream/Stream<Lcom/headius/backport9/stack/StackWalker$StackFrame;>;
}
SourceFile: "Runtime.java"
NestMembers:
org.jruby.management.Runtime$1
InnerClasses:
public abstract StackFrame = com.headius.backport9.stack.StackWalker$StackFrame of com.headius.backport9.stack.StackWalker
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
org.jruby.management.Runtime$1
public abstract Format = org.jruby.runtime.backtrace.TraceType$Format of org.jruby.runtime.backtrace.TraceType
public abstract Gather = org.jruby.runtime.backtrace.TraceType$Gather of org.jruby.runtime.backtrace.TraceType