public class com.sun.org.apache.xml.internal.utils.SafeThread extends java.lang.Thread
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.org.apache.xml.internal.utils.SafeThread
super_class: java.lang.Thread
{
private volatile boolean ran;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final java.util.concurrent.atomic.AtomicInteger threadNumber;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicInteger
dup
iconst_1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putstatic com.sun.org.apache.xml.internal.utils.SafeThread.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
return
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String threadName();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc "SafeThread-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic com.sun.org.apache.xml.internal.utils.SafeThread.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
invokestatic com.sun.org.apache.xml.internal.utils.SafeThread.threadName:()Ljava/lang/String;
invokespecial com.sun.org.apache.xml.internal.utils.SafeThread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/xml/internal/utils/SafeThread;
0 2 1 target Ljava/lang/Runnable;
MethodParameters:
Name Flags
target
public void <init>(java.lang.Runnable, java.lang.String);
descriptor: (Ljava/lang/Runnable;Ljava/lang/String;)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
aconst_null
aload 1
aload 2
invokespecial com.sun.org.apache.xml.internal.utils.SafeThread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/xml/internal/utils/SafeThread;
0 2 1 target Ljava/lang/Runnable;
0 2 2 name Ljava/lang/String;
MethodParameters:
Name Flags
target
name
public void <init>(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
lconst_0
iconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JZ)V
1: aload 0
iconst_0
putfield com.sun.org.apache.xml.internal.utils.SafeThread.ran:Z
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/org/apache/xml/internal/utils/SafeThread;
0 3 1 group Ljava/lang/ThreadGroup;
0 3 2 target Ljava/lang/Runnable;
0 3 3 name Ljava/lang/String;
MethodParameters:
Name Flags
group
target
name
public final void run();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
if_acmpeq 2
1: new java.lang.IllegalStateException
dup
ldc "The run() method in a SafeThread cannot be called from another thread."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 1
monitorenter
3: aload 0
getfield com.sun.org.apache.xml.internal.utils.SafeThread.ran:Z
ifne 6
4: aload 0
iconst_1
putfield com.sun.org.apache.xml.internal.utils.SafeThread.ran:Z
5: goto 7
6: StackMap locals: com.sun.org.apache.xml.internal.utils.SafeThread
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "The run() method in a SafeThread cannot be called more than once."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 0
invokespecial java.lang.Thread.run:()V
12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/org/apache/xml/internal/utils/SafeThread;
Exception table:
from to target type
3 8 9 any
9 10 9 any
}
SourceFile: "SafeThread.java"