public class com.codahale.metrics.jvm.ThreadDump
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.codahale.metrics.jvm.ThreadDump
  super_class: java.lang.Object
{
  private final java.lang.management.ThreadMXBean threadMXBean;
    descriptor: Ljava/lang/management/ThreadMXBean;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  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 // com.codahale.metrics.jvm.ThreadDump this
        start local 1 // java.lang.management.ThreadMXBean threadMXBean
         0: .line 21
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 22
            aload 0 /* this */
            aload 1 /* threadMXBean */
            putfield com.codahale.metrics.jvm.ThreadDump.threadMXBean:Ljava/lang/management/ThreadMXBean;
         2: .line 23
            return
        end local 1 // java.lang.management.ThreadMXBean threadMXBean
        end local 0 // com.codahale.metrics.jvm.ThreadDump this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    3     0          this  Lcom/codahale/metrics/jvm/ThreadDump;
            0    3     1  threadMXBean  Ljava/lang/management/ThreadMXBean;
    MethodParameters:
              Name  Flags
      threadMXBean  

  public void dump(java.io.OutputStream);
    descriptor: (Ljava/io/OutputStream;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // com.codahale.metrics.jvm.ThreadDump this
        start local 1 // java.io.OutputStream out
         0: .line 31
            aload 0 /* this */
            iconst_1
            iconst_1
            aload 1 /* out */
            invokevirtual com.codahale.metrics.jvm.ThreadDump.dump:(ZZLjava/io/OutputStream;)V
         1: .line 32
            return
        end local 1 // java.io.OutputStream out
        end local 0 // com.codahale.metrics.jvm.ThreadDump this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/codahale/metrics/jvm/ThreadDump;
            0    2     1   out  Ljava/io/OutputStream;
    MethodParameters:
      Name  Flags
      out   

  public void dump(boolean, boolean, java.io.OutputStream);
    descriptor: (ZZLjava/io/OutputStream;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=16, args_size=4
        start local 0 // com.codahale.metrics.jvm.ThreadDump this
        start local 1 // boolean lockedMonitors
        start local 2 // boolean lockedSynchronizers
        start local 3 // java.io.OutputStream out
         0: .line 48
            aload 0 /* this */
            getfield com.codahale.metrics.jvm.ThreadDump.threadMXBean:Ljava/lang/management/ThreadMXBean;
            iload 1 /* lockedMonitors */
            iload 2 /* lockedSynchronizers */
            invokeinterface java.lang.management.ThreadMXBean.dumpAllThreads:(ZZ)[Ljava/lang/management/ThreadInfo;
            astore 4 /* threads */
        start local 4 // java.lang.management.ThreadInfo[] threads
         1: .line 49
            new java.io.PrintWriter
            dup
            new java.io.OutputStreamWriter
            dup
            aload 3 /* out */
            getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
            invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
            invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
            astore 5 /* writer */
        start local 5 // java.io.PrintWriter writer
         2: .line 51
            aload 4 /* threads */
            arraylength
            iconst_1
            isub
            istore 6 /* ti */
        start local 6 // int ti
         3: goto 59
         4: .line 52
      StackMap locals: java.lang.management.ThreadInfo[] java.io.PrintWriter int
      StackMap stack:
            aload 4 /* threads */
            iload 6 /* ti */
            aaload
            astore 7 /* t */
        start local 7 // java.lang.management.ThreadInfo t
         5: .line 53
            aload 5 /* writer */
            ldc "\"%s\" id=%d state=%s"
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
         6: .line 54
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getThreadName:()Ljava/lang/String;
            aastore
            dup
            iconst_1
         7: .line 55
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getThreadId:()J
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aastore
            dup
            iconst_2
         8: .line 56
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getThreadState:()Ljava/lang/Thread$State;
            aastore
         9: .line 53
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        10: .line 57
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getLockInfo:()Ljava/lang/management/LockInfo;
            astore 8 /* lock */
        start local 8 // java.lang.management.LockInfo lock
        11: .line 58
            aload 8 /* lock */
            ifnull 21
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getThreadState:()Ljava/lang/Thread$State;
            getstatic java.lang.Thread$State.BLOCKED:Ljava/lang/Thread$State;
            if_acmpeq 21
        12: .line 59
            aload 5 /* writer */
            ldc "%n    - waiting on <0x%08x> (a %s)"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
        13: .line 60
            aload 8 /* lock */
            invokevirtual java.lang.management.LockInfo.getIdentityHashCode:()I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
        14: .line 61
            aload 8 /* lock */
            invokevirtual java.lang.management.LockInfo.getClassName:()Ljava/lang/String;
            aastore
        15: .line 59
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        16: .line 62
            aload 5 /* writer */
            ldc "%n    - locked <0x%08x> (a %s)"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
        17: .line 63
            aload 8 /* lock */
            invokevirtual java.lang.management.LockInfo.getIdentityHashCode:()I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
        18: .line 64
            aload 8 /* lock */
            invokevirtual java.lang.management.LockInfo.getClassName:()Ljava/lang/String;
            aastore
        19: .line 62
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        20: .line 65
            goto 26
      StackMap locals: java.lang.management.ThreadInfo java.lang.management.LockInfo
      StackMap stack:
        21: aload 8 /* lock */
            ifnull 26
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getThreadState:()Ljava/lang/Thread$State;
            getstatic java.lang.Thread$State.BLOCKED:Ljava/lang/Thread$State;
            if_acmpne 26
        22: .line 66
            aload 5 /* writer */
            ldc "%n    - waiting to lock <0x%08x> (a %s)"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
        23: .line 67
            aload 8 /* lock */
            invokevirtual java.lang.management.LockInfo.getIdentityHashCode:()I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
        24: .line 68
            aload 8 /* lock */
            invokevirtual java.lang.management.LockInfo.getClassName:()Ljava/lang/String;
            aastore
        25: .line 66
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        26: .line 71
      StackMap locals:
      StackMap stack:
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.isSuspended:()Z
            ifeq 28
        27: .line 72
            aload 5 /* writer */
            ldc " (suspended)"
            invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
        28: .line 75
      StackMap locals:
      StackMap stack:
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.isInNative:()Z
            ifeq 30
        29: .line 76
            aload 5 /* writer */
            ldc " (running in native)"
            invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
        30: .line 79
      StackMap locals:
      StackMap stack:
            aload 5 /* writer */
            invokevirtual java.io.PrintWriter.println:()V
        31: .line 80
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getLockOwnerName:()Ljava/lang/String;
            ifnull 33
        32: .line 81
            aload 5 /* writer */
            ldc "     owned by %s id=%d%n"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getLockOwnerName:()Ljava/lang/String;
            aastore
            dup
            iconst_1
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getLockOwnerId:()J
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aastore
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        33: .line 84
      StackMap locals:
      StackMap stack:
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getStackTrace:()[Ljava/lang/StackTraceElement;
            astore 9 /* elements */
        start local 9 // java.lang.StackTraceElement[] elements
        34: .line 85
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getLockedMonitors:()[Ljava/lang/management/MonitorInfo;
            astore 10 /* monitors */
        start local 10 // java.lang.management.MonitorInfo[] monitors
        35: .line 87
            iconst_0
            istore 11 /* i */
        start local 11 // int i
        36: goto 47
        37: .line 88
      StackMap locals: java.lang.StackTraceElement[] java.lang.management.MonitorInfo[] int
      StackMap stack:
            aload 9 /* elements */
            iload 11 /* i */
            aaload
            astore 12 /* element */
        start local 12 // java.lang.StackTraceElement element
        38: .line 89
            aload 5 /* writer */
            ldc "    at %s%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 12 /* element */
            aastore
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        39: .line 90
            iconst_1
            istore 13 /* j */
        start local 13 // int j
        40: goto 45
        41: .line 91
      StackMap locals: java.lang.StackTraceElement int
      StackMap stack:
            aload 10 /* monitors */
            iload 13 /* j */
            aaload
            astore 14 /* monitor */
        start local 14 // java.lang.management.MonitorInfo monitor
        42: .line 92
            aload 14 /* monitor */
            invokevirtual java.lang.management.MonitorInfo.getLockedStackDepth:()I
            iload 11 /* i */
            if_icmpne 44
        43: .line 93
            aload 5 /* writer */
            ldc "      - locked %s%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 14 /* monitor */
            aastore
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        end local 14 // java.lang.management.MonitorInfo monitor
        44: .line 90
      StackMap locals:
      StackMap stack:
            iinc 13 /* j */ 1
      StackMap locals:
      StackMap stack:
        45: iload 13 /* j */
            aload 10 /* monitors */
            arraylength
            if_icmplt 41
        end local 13 // int j
        end local 12 // java.lang.StackTraceElement element
        46: .line 87
            iinc 11 /* i */ 1
      StackMap locals:
      StackMap stack:
        47: iload 11 /* i */
            aload 9 /* elements */
            arraylength
            if_icmplt 37
        end local 11 // int i
        48: .line 97
            aload 5 /* writer */
            invokevirtual java.io.PrintWriter.println:()V
        49: .line 99
            aload 7 /* t */
            invokevirtual java.lang.management.ThreadInfo.getLockedSynchronizers:()[Ljava/lang/management/LockInfo;
            astore 11 /* locks */
        start local 11 // java.lang.management.LockInfo[] locks
        50: .line 100
            aload 11 /* locks */
            arraylength
            ifle 58
        51: .line 101
            aload 5 /* writer */
            ldc "    Locked synchronizers: count = %d%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 11 /* locks */
            arraylength
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        52: .line 102
            aload 11 /* locks */
            dup
            astore 15
            arraylength
            istore 14
            iconst_0
            istore 13
            goto 56
      StackMap locals: com.codahale.metrics.jvm.ThreadDump int int java.io.OutputStream java.lang.management.ThreadInfo[] java.io.PrintWriter int java.lang.management.ThreadInfo java.lang.management.LockInfo java.lang.StackTraceElement[] java.lang.management.MonitorInfo[] java.lang.management.LockInfo[] top int int java.lang.management.LockInfo[]
      StackMap stack:
        53: aload 15
            iload 13
            aaload
            astore 12 /* l */
        start local 12 // java.lang.management.LockInfo l
        54: .line 103
            aload 5 /* writer */
            ldc "      - %s%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 12 /* l */
            aastore
            invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
            pop
        end local 12 // java.lang.management.LockInfo l
        55: .line 102
            iinc 13 1
      StackMap locals:
      StackMap stack:
        56: iload 13
            iload 14
            if_icmplt 53
        57: .line 105
            aload 5 /* writer */
            invokevirtual java.io.PrintWriter.println:()V
        end local 11 // java.lang.management.LockInfo[] locks
        end local 10 // java.lang.management.MonitorInfo[] monitors
        end local 9 // java.lang.StackTraceElement[] elements
        end local 8 // java.lang.management.LockInfo lock
        end local 7 // java.lang.management.ThreadInfo t
        58: .line 51
      StackMap locals: com.codahale.metrics.jvm.ThreadDump int int java.io.OutputStream java.lang.management.ThreadInfo[] java.io.PrintWriter int
      StackMap stack:
            iinc 6 /* ti */ -1
      StackMap locals:
      StackMap stack:
        59: iload 6 /* ti */
            ifge 4
        end local 6 // int ti
        60: .line 109
            aload 5 /* writer */
            invokevirtual java.io.PrintWriter.println:()V
        61: .line 110
            aload 5 /* writer */
            invokevirtual java.io.PrintWriter.flush:()V
        62: .line 111
            return
        end local 5 // java.io.PrintWriter writer
        end local 4 // java.lang.management.ThreadInfo[] threads
        end local 3 // java.io.OutputStream out
        end local 2 // boolean lockedSynchronizers
        end local 1 // boolean lockedMonitors
        end local 0 // com.codahale.metrics.jvm.ThreadDump this
      LocalVariableTable:
        Start  End  Slot                 Name  Signature
            0   63     0                 this  Lcom/codahale/metrics/jvm/ThreadDump;
            0   63     1       lockedMonitors  Z
            0   63     2  lockedSynchronizers  Z
            0   63     3                  out  Ljava/io/OutputStream;
            1   63     4              threads  [Ljava/lang/management/ThreadInfo;
            2   63     5               writer  Ljava/io/PrintWriter;
            3   60     6                   ti  I
            5   58     7                    t  Ljava/lang/management/ThreadInfo;
           11   58     8                 lock  Ljava/lang/management/LockInfo;
           34   58     9             elements  [Ljava/lang/StackTraceElement;
           35   58    10             monitors  [Ljava/lang/management/MonitorInfo;
           36   48    11                    i  I
           38   46    12              element  Ljava/lang/StackTraceElement;
           40   46    13                    j  I
           42   44    14              monitor  Ljava/lang/management/MonitorInfo;
           50   58    11                locks  [Ljava/lang/management/LockInfo;
           54   55    12                    l  Ljava/lang/management/LockInfo;
    MethodParameters:
                     Name  Flags
      lockedMonitors       
      lockedSynchronizers  
      out                  
}
SourceFile: "ThreadDump.java"
InnerClasses:
  public final State = java.lang.Thread$State of java.lang.Thread