public class org.jruby.internal.runtime.NativeThread implements org.jruby.internal.runtime.ThreadLike
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.internal.runtime.NativeThread
super_class: java.lang.Object
{
private final java.lang.ref.Reference<java.lang.Thread> nativeThread;
descriptor: Ljava/lang/ref/Reference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/Reference<Ljava/lang/Thread;>;
public final org.jruby.RubyThread rubyThread;
descriptor: Lorg/jruby/RubyThread;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public java.lang.String rubyName;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
private static final java.lang.String RUBY_THREAD_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Ruby-"
public void <init>(org.jruby.RubyThread, java.lang.Thread);
descriptor: (Lorg/jruby/RubyThread;Ljava/lang/Thread;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.internal.runtime.NativeThread.rubyThread:Lorg/jruby/RubyThread;
2: aload 0
new java.lang.ref.WeakReference
dup
aload 2
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield org.jruby.internal.runtime.NativeThread.nativeThread:Ljava/lang/ref/Reference;
3: aload 0
aconst_null
putfield org.jruby.internal.runtime.NativeThread.rubyName:Ljava/lang/String;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/internal/runtime/NativeThread;
0 5 1 rubyThread Lorg/jruby/RubyThread;
0 5 2 nativeThread Ljava/lang/Thread;
MethodParameters:
Name Flags
rubyThread
nativeThread
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.Thread.start:()V
2: StackMap locals: java.lang.Thread
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/internal/runtime/NativeThread;
1 3 1 thread Ljava/lang/Thread;
public void interrupt();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.Thread.interrupt:()V
2: StackMap locals: java.lang.Thread
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/internal/runtime/NativeThread;
1 3 1 thread Ljava/lang/Thread;
public boolean isAlive();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.Thread.isAlive:()Z
ireturn
2: StackMap locals: java.lang.Thread
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/internal/runtime/NativeThread;
1 3 1 thread Ljava/lang/Thread;
public void join();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.Thread.join:()V
2: StackMap locals: java.lang.Thread
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/internal/runtime/NativeThread;
1 3 1 thread Ljava/lang/Thread;
Exceptions:
throws java.lang.InterruptedException
public void join(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 3
start local 3 1: aload 3
ifnull 2
aload 3
lload 1
invokevirtual java.lang.Thread.join:(J)V
2: StackMap locals: java.lang.Thread
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/internal/runtime/NativeThread;
0 3 1 timeoutMillis J
1 3 3 thread Ljava/lang/Thread;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
timeoutMillis
public int getPriority();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.Thread.getPriority:()I
ireturn
2: StackMap locals: java.lang.Thread
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/internal/runtime/NativeThread;
1 3 1 thread Ljava/lang/Thread;
public void setPriority(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
iload 1
invokevirtual java.lang.Thread.setPriority:(I)V
2: StackMap locals: java.lang.Thread
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/internal/runtime/NativeThread;
0 3 1 priority I
1 3 2 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
priority
public boolean isCurrent();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/internal/runtime/NativeThread;
public boolean isInterrupted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokevirtual java.lang.Thread.isInterrupted:()Z
ireturn
3: StackMap locals: java.lang.Thread
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/internal/runtime/NativeThread;
1 4 1 thread Ljava/lang/Thread;
public final java.lang.Thread getThread();
descriptor: ()Ljava/lang/Thread;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.internal.runtime.NativeThread.nativeThread:Ljava/lang/ref/Reference;
invokevirtual java.lang.ref.Reference.get:()Ljava/lang/Object;
checkcast java.lang.Thread
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/internal/runtime/NativeThread;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/internal/runtime/NativeThread;
public java.lang.Thread nativeThread();
descriptor: ()Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.internal.runtime.NativeThread.nativeThread:Ljava/lang/ref/Reference;
invokevirtual java.lang.ref.Reference.get:()Ljava/lang/Object;
checkcast java.lang.Thread
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/internal/runtime/NativeThread;
public void setRubyName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jruby.internal.runtime.NativeThread.rubyName:Ljava/lang/String;
1: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.updateName:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/internal/runtime/NativeThread;
0 3 1 id Ljava/lang/String;
MethodParameters:
Name Flags
id
public java.lang.String getRubyName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.internal.runtime.NativeThread.rubyName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/internal/runtime/NativeThread;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public java.lang.String getReportName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: ldc ""
astore 1
start local 1 1: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 2
start local 2 2: aload 2
ifnull 3
aload 2
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
astore 1
3: StackMap locals: java.lang.String java.lang.Thread
StackMap stack:
aload 0
getfield org.jruby.internal.runtime.NativeThread.rubyName:Ljava/lang/String;
ifnull 4
aload 0
getfield org.jruby.internal.runtime.NativeThread.rubyName:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifne 7
4: StackMap locals:
StackMap stack:
aload 1
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
ldc "(unnamed)"
goto 6
StackMap locals:
StackMap stack:
5: aload 1
StackMap locals:
StackMap stack: java.lang.String
6: areturn
7: StackMap locals:
StackMap stack:
aload 1
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
aload 0
getfield org.jruby.internal.runtime.NativeThread.rubyName:Ljava/lang/String;
goto 9
StackMap locals:
StackMap stack:
8: new java.lang.StringBuilder
dup
aload 0
getfield org.jruby.internal.runtime.NativeThread.rubyName:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
9: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/internal/runtime/NativeThread;
1 10 1 nativeName Ljava/lang/String;
2 10 2 thread Ljava/lang/Thread;
void updateName();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=9, args_size=1
start local 0 0: aload 0
getfield org.jruby.internal.runtime.NativeThread.rubyName:Ljava/lang/String;
astore 2
start local 2 1: aload 0
invokevirtual org.jruby.internal.runtime.NativeThread.getThread:()Ljava/lang/Thread;
astore 3
start local 3 2: aload 3
ifnonnull 3
return
3: StackMap locals: org.jruby.internal.runtime.NativeThread top java.lang.String java.lang.Thread
StackMap stack:
aload 3
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
astore 4
start local 4 4: aload 4
ifnull 20
aload 4
ldc "Ruby-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 20
5: aload 4
bipush 64
invokevirtual java.lang.String.indexOf:(I)I
istore 5
start local 5 6: iload 5
iconst_m1
if_icmpne 12
7: aload 4
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 6
start local 6 8: iload 6
iconst_m1
if_icmpne 9
aload 4
invokevirtual java.lang.String.length:()I
istore 6
9: StackMap locals: java.lang.String int int
StackMap stack:
aload 4
iconst_0
iload 6
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
start local 7 10: aload 4
aload 7
new java.lang.StringBuilder
dup
aload 7
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 64
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 1
end local 7 end local 6 start local 1 11: goto 21
end local 1 12: StackMap locals:
StackMap stack:
aload 4
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
start local 6 13: aload 4
bipush 58
iload 5
invokevirtual java.lang.String.indexOf:(II)I
istore 7
start local 7 14: iload 7
iconst_m1
if_icmpne 15
aload 4
invokevirtual java.lang.String.length:()I
istore 7
15: StackMap locals: java.lang.String int
StackMap stack:
aload 4
iconst_0
iload 7
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 8
start local 8 16: aload 4
aload 8
aload 2
ifnonnull 17
aload 6
goto 18
StackMap locals: org.jruby.internal.runtime.NativeThread top java.lang.String java.lang.Thread java.lang.String int java.lang.String int java.lang.String
StackMap stack: java.lang.String java.lang.String
17: new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 64
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: org.jruby.internal.runtime.NativeThread top java.lang.String java.lang.Thread java.lang.String int java.lang.String int java.lang.String
StackMap stack: java.lang.String java.lang.String java.lang.String
18: invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 1
end local 8 end local 7 end local 6 end local 5 start local 1 19: goto 21
end local 1 StackMap locals: org.jruby.internal.runtime.NativeThread top java.lang.String java.lang.Thread java.lang.String
StackMap stack:
20: return
start local 1 21: StackMap locals: org.jruby.internal.runtime.NativeThread java.lang.String java.lang.String java.lang.Thread java.lang.String
StackMap stack:
aload 3
aload 1
invokevirtual java.lang.Thread.setName:(Ljava/lang/String;)V
22: goto 24
StackMap locals:
StackMap stack: java.lang.SecurityException
23: pop
24: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/jruby/internal/runtime/NativeThread;
11 12 1 newName Ljava/lang/String;
19 20 1 newName Ljava/lang/String;
21 25 1 newName Ljava/lang/String;
1 25 2 setName Ljava/lang/String;
2 25 3 thread Ljava/lang/Thread;
4 25 4 currentName Ljava/lang/String;
6 19 5 i I
8 11 6 end I
10 11 7 prefix Ljava/lang/String;
13 19 6 prefix Ljava/lang/String;
14 19 7 end I
16 19 8 prefixWithName Ljava/lang/String;
Exception table:
from to target type
21 22 23 Class java.lang.SecurityException
}
SourceFile: "NativeThread.java"