public class com.codahale.metrics.jvm.ThreadDeadlockDetector
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.jvm.ThreadDeadlockDetector
super_class: java.lang.Object
{
private static final int MAX_STACK_TRACE_DEPTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private final java.lang.management.ThreadMXBean threads;
descriptor: Ljava/lang/management/ThreadMXBean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.management.ManagementFactory.getThreadMXBean:()Ljava/lang/management/ThreadMXBean;
invokespecial com.codahale.metrics.jvm.ThreadDeadlockDetector.<init>:(Ljava/lang/management/ThreadMXBean;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/jvm/ThreadDeadlockDetector;
public void <init>(java.lang.management.ThreadMXBean);
descriptor: (Ljava/lang/management/ThreadMXBean;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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 com.codahale.metrics.jvm.ThreadDeadlockDetector.threads:Ljava/lang/management/ThreadMXBean;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/codahale/metrics/jvm/ThreadDeadlockDetector;
0 3 1 threads Ljava/lang/management/ThreadMXBean;
MethodParameters:
Name Flags
threads
public java.util.Set<java.lang.String> getDeadlockedThreads();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=12, args_size=1
start local 0 0: aload 0
getfield com.codahale.metrics.jvm.ThreadDeadlockDetector.threads:Ljava/lang/management/ThreadMXBean;
invokeinterface java.lang.management.ThreadMXBean.findDeadlockedThreads:()[J
astore 1
start local 1 1: aload 1
ifnull 24
2: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 3: aload 0
getfield com.codahale.metrics.jvm.ThreadDeadlockDetector.threads:Ljava/lang/management/ThreadMXBean;
aload 1
bipush 100
invokeinterface java.lang.management.ThreadMXBean.getThreadInfo:([JI)[Ljava/lang/management/ThreadInfo;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 22
StackMap locals: com.codahale.metrics.jvm.ThreadDeadlockDetector long[] java.util.Set top int int java.lang.management.ThreadInfo[]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 7
start local 7 6: aload 3
invokevirtual java.lang.management.ThreadInfo.getStackTrace:()[Ljava/lang/StackTraceElement;
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 12
StackMap locals: com.codahale.metrics.jvm.ThreadDeadlockDetector long[] java.util.Set java.lang.management.ThreadInfo int int java.lang.management.ThreadInfo[] java.lang.StringBuilder top int int java.lang.StackTraceElement[]
StackMap stack:
7: aload 11
iload 9
aaload
astore 8
start local 8 8: aload 7
ldc "\t at "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: aload 8
invokevirtual java.lang.StackTraceElement.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc "%n"
iconst_0
anewarray java.lang.Object
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 8 11: iinc 9 1
StackMap locals:
StackMap stack:
12: iload 9
iload 10
if_icmplt 7
13: aload 2
14: ldc "%s locked on %s (owned by %s):%n%s"
iconst_4
anewarray java.lang.Object
dup
iconst_0
15: aload 3
invokevirtual java.lang.management.ThreadInfo.getThreadName:()Ljava/lang/String;
aastore
dup
iconst_1
16: aload 3
invokevirtual java.lang.management.ThreadInfo.getLockName:()Ljava/lang/String;
aastore
dup
iconst_2
17: aload 3
invokevirtual java.lang.management.ThreadInfo.getLockOwnerName:()Ljava/lang/String;
aastore
dup
iconst_3
18: aload 7
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
19: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
20: invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 3 21: iinc 4 1
StackMap locals: com.codahale.metrics.jvm.ThreadDeadlockDetector long[] java.util.Set top int int java.lang.management.ThreadInfo[]
StackMap stack:
22: iload 4
iload 5
if_icmplt 4
23: aload 2
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 2 24: StackMap locals: com.codahale.metrics.jvm.ThreadDeadlockDetector long[]
StackMap stack:
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/codahale/metrics/jvm/ThreadDeadlockDetector;
1 25 1 ids [J
3 24 2 deadlocks Ljava/util/Set<Ljava/lang/String;>;
5 21 3 info Ljava/lang/management/ThreadInfo;
6 21 7 stackTrace Ljava/lang/StringBuilder;
8 11 8 element Ljava/lang/StackTraceElement;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
}
SourceFile: "ThreadDeadlockDetector.java"