public class sun.tools.jstack.JStack
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: sun.tools.jstack.JStack
  super_class: java.lang.Object
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // sun.tools.jstack.JStack this
         0: .line 42
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.tools.jstack.JStack this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lsun/tools/jstack/JStack;

  public static void main(java.lang.String[]);
    descriptor: ([Ljava/lang/String;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=8, args_size=1
        start local 0 // java.lang.String[] args
         0: .line 44
            aload 0 /* args */
            arraylength
            ifne 2
         1: .line 45
            invokestatic sun.tools.jstack.JStack.usage:()V
         2: .line 48
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 1 /* useSA */
        start local 1 // boolean useSA
         3: .line 49
            iconst_0
            istore 2 /* mixed */
        start local 2 // boolean mixed
         4: .line 50
            iconst_0
            istore 3 /* locks */
        start local 3 // boolean locks
         5: .line 53
            iconst_0
            istore 4 /* optionCount */
        start local 4 // int optionCount
         6: .line 54
            goto 21
         7: .line 55
      StackMap locals: java.lang.String[] int int int int
      StackMap stack:
            aload 0 /* args */
            iload 4 /* optionCount */
            aaload
            astore 5 /* arg */
        start local 5 // java.lang.String arg
         8: .line 56
            aload 5 /* arg */
            ldc "-"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 10
         9: .line 57
            goto 22
        10: .line 59
      StackMap locals: java.lang.String
      StackMap stack:
            aload 5 /* arg */
            ldc "-F"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 13
        11: .line 60
            iconst_1
            istore 1 /* useSA */
        12: .line 61
            goto 20
        13: .line 62
      StackMap locals:
      StackMap stack:
            aload 5 /* arg */
            ldc "-m"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 16
        14: .line 63
            iconst_1
            istore 2 /* mixed */
        15: .line 64
            goto 20
        16: .line 65
      StackMap locals:
      StackMap stack:
            aload 5 /* arg */
            ldc "-l"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 19
        17: .line 66
            iconst_1
            istore 3 /* locks */
        18: .line 67
            goto 20
        19: .line 68
      StackMap locals:
      StackMap stack:
            invokestatic sun.tools.jstack.JStack.usage:()V
        20: .line 72
      StackMap locals:
      StackMap stack:
            iinc 4 /* optionCount */ 1
        end local 5 // java.lang.String arg
        21: .line 54
      StackMap locals:
      StackMap stack:
            iload 4 /* optionCount */
            aload 0 /* args */
            arraylength
            if_icmplt 7
        22: .line 76
      StackMap locals:
      StackMap stack:
            iload 2 /* mixed */
            ifeq 24
        23: .line 77
            iconst_1
            istore 1 /* useSA */
        24: .line 82
      StackMap locals:
      StackMap stack:
            aload 0 /* args */
            arraylength
            iload 4 /* optionCount */
            isub
            istore 5 /* paramCount */
        start local 5 // int paramCount
        25: .line 83
            iload 5 /* paramCount */
            ifeq 26
            iload 5 /* paramCount */
            iconst_2
            if_icmple 27
        26: .line 84
      StackMap locals: int
      StackMap stack:
            invokestatic sun.tools.jstack.JStack.usage:()V
        27: .line 86
      StackMap locals:
      StackMap stack:
            iload 5 /* paramCount */
            iconst_2
            if_icmpne 30
        28: .line 87
            iconst_1
            istore 1 /* useSA */
        29: .line 88
            goto 32
        30: .line 90
      StackMap locals:
      StackMap stack:
            aload 0 /* args */
            iload 4 /* optionCount */
            aaload
            ldc "[0-9]+"
            invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
            ifne 32
        31: .line 91
            iconst_1
            istore 1 /* useSA */
        32: .line 96
      StackMap locals:
      StackMap stack:
            iload 1 /* useSA */
            ifeq 41
        33: .line 98
            iload 5 /* paramCount */
            anewarray java.lang.String
            astore 6 /* params */
        start local 6 // java.lang.String[] params
        34: .line 99
            iload 4 /* optionCount */
            istore 7 /* i */
        start local 7 // int i
        35: goto 38
        36: .line 100
      StackMap locals: java.lang.String[] int
      StackMap stack:
            aload 6 /* params */
            iload 7 /* i */
            iload 4 /* optionCount */
            isub
            aload 0 /* args */
            iload 7 /* i */
            aaload
            aastore
        37: .line 99
            iinc 7 /* i */ 1
      StackMap locals:
      StackMap stack:
        38: iload 7 /* i */
            aload 0 /* args */
            arraylength
            if_icmplt 36
        end local 7 // int i
        39: .line 102
            iload 2 /* mixed */
            iload 3 /* locks */
            aload 6 /* params */
            invokestatic sun.tools.jstack.JStack.runJStackTool:(ZZ[Ljava/lang/String;)V
        end local 6 // java.lang.String[] params
        40: .line 103
            goto 47
        41: .line 105
      StackMap locals:
      StackMap stack:
            aload 0 /* args */
            iload 4 /* optionCount */
            aaload
            astore 6 /* pid */
        start local 6 // java.lang.String pid
        42: .line 107
            iload 3 /* locks */
            ifeq 45
        43: .line 108
            iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            ldc "-l"
            aastore
            astore 7 /* params */
        start local 7 // java.lang.String[] params
        44: .line 109
            goto 46
        end local 7 // java.lang.String[] params
        45: .line 110
      StackMap locals: java.lang.String
      StackMap stack:
            iconst_0
            anewarray java.lang.String
            astore 7 /* params */
        start local 7 // java.lang.String[] params
        46: .line 112
      StackMap locals: java.lang.String[]
      StackMap stack:
            aload 6 /* pid */
            aload 7 /* params */
            invokestatic sun.tools.jstack.JStack.runThreadDump:(Ljava/lang/String;[Ljava/lang/String;)V
        end local 7 // java.lang.String[] params
        end local 6 // java.lang.String pid
        47: .line 114
      StackMap locals:
      StackMap stack:
            return
        end local 5 // int paramCount
        end local 4 // int optionCount
        end local 3 // boolean locks
        end local 2 // boolean mixed
        end local 1 // boolean useSA
        end local 0 // java.lang.String[] args
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   48     0         args  [Ljava/lang/String;
            3   48     1        useSA  Z
            4   48     2        mixed  Z
            5   48     3        locks  Z
            6   48     4  optionCount  I
            8   21     5          arg  Ljava/lang/String;
           25   48     5   paramCount  I
           34   40     6       params  [Ljava/lang/String;
           35   39     7            i  I
           42   47     6          pid  Ljava/lang/String;
           44   45     7       params  [Ljava/lang/String;
           46   47     7       params  [Ljava/lang/String;
    Exceptions:
      throws java.lang.Exception
    MethodParameters:
      Name  Flags
      args  

  private static void runJStackTool(boolean, boolean, java.lang.String[]);
    descriptor: (ZZ[Ljava/lang/String;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=7, args_size=3
        start local 0 // boolean mixed
        start local 1 // boolean locks
        start local 2 // java.lang.String[] args
         0: .line 119
            invokestatic sun.tools.jstack.JStack.loadSAClass:()Ljava/lang/Class;
            astore 3 /* cl */
        start local 3 // java.lang.Class cl
         1: .line 120
            aload 3 /* cl */
            ifnonnull 3
         2: .line 121
            invokestatic sun.tools.jstack.JStack.usage:()V
         3: .line 125
      StackMap locals: java.lang.Class
      StackMap stack:
            iload 0 /* mixed */
            ifeq 5
         4: .line 126
            ldc "-m"
            aload 2 /* args */
            invokestatic sun.tools.jstack.JStack.prepend:(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
            astore 2 /* args */
         5: .line 128
      StackMap locals:
      StackMap stack:
            iload 1 /* locks */
            ifeq 7
         6: .line 129
            ldc "-l"
            aload 2 /* args */
            invokestatic sun.tools.jstack.JStack.prepend:(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
            astore 2 /* args */
         7: .line 132
      StackMap locals:
      StackMap stack:
            iconst_1
            anewarray java.lang.Class
            dup
            iconst_0
            ldc [Ljava/lang/String;
            aastore
            astore 4 /* argTypes */
        start local 4 // java.lang.Class[] argTypes
         8: .line 133
            aload 3 /* cl */
            ldc "main"
            aload 4 /* argTypes */
            invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
            astore 5 /* m */
        start local 5 // java.lang.reflect.Method m
         9: .line 135
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 2 /* args */
            aastore
            astore 6 /* invokeArgs */
        start local 6 // java.lang.Object[] invokeArgs
        10: .line 136
            aload 5 /* m */
            aconst_null
            aload 6 /* invokeArgs */
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
        11: .line 137
            return
        end local 6 // java.lang.Object[] invokeArgs
        end local 5 // java.lang.reflect.Method m
        end local 4 // java.lang.Class[] argTypes
        end local 3 // java.lang.Class cl
        end local 2 // java.lang.String[] args
        end local 1 // boolean locks
        end local 0 // boolean mixed
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   12     0       mixed  Z
            0   12     1       locks  Z
            0   12     2        args  [Ljava/lang/String;
            1   12     3          cl  Ljava/lang/Class<*>;
            8   12     4    argTypes  [Ljava/lang/Class;
            9   12     5           m  Ljava/lang/reflect/Method;
           10   12     6  invokeArgs  [Ljava/lang/Object;
    Exceptions:
      throws java.lang.Exception
    MethodParameters:
       Name  Flags
      mixed  
      locks  
      args   

  private static java.lang.Class<?> loadSAClass();
    descriptor: ()Ljava/lang/Class;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 149
            ldc "sun.jvm.hotspot.tools.JStack"
            iconst_1
         1: .line 150
            invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
         2: .line 149
            invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
         3: areturn
         4: .line 151
      StackMap locals:
      StackMap stack: java.lang.Exception
            pop
         5: .line 152
            aconst_null
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
      Exception table:
        from    to  target  type
           0     3       4  Class java.lang.Exception
    Signature: ()Ljava/lang/Class<*>;

  private static void runThreadDump(java.lang.String, java.lang.String[]);
    descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=6, locals=7, args_size=2
        start local 0 // java.lang.String pid
        start local 1 // java.lang.String[] args
         0: .line 157
            aconst_null
            astore 2 /* vm */
        start local 2 // com.sun.tools.attach.VirtualMachine vm
         1: .line 159
            aload 0 /* pid */
            invokestatic com.sun.tools.attach.VirtualMachine.attach:(Ljava/lang/String;)Lcom/sun/tools/attach/VirtualMachine;
            astore 2 /* vm */
         2: .line 160
            goto 13
      StackMap locals: java.lang.String java.lang.String[] com.sun.tools.attach.VirtualMachine
      StackMap stack: java.lang.Exception
         3: astore 3 /* x */
        start local 3 // java.lang.Exception x
         4: .line 161
            aload 3 /* x */
            invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
            astore 4 /* msg */
        start local 4 // java.lang.String msg
         5: .line 162
            aload 4 /* msg */
            ifnull 8
         6: .line 163
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            aload 0 /* pid */
            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 4 /* msg */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         7: .line 164
            goto 9
         8: .line 165
      StackMap locals: java.lang.Exception java.lang.String
      StackMap stack:
            aload 3 /* x */
            invokevirtual java.lang.Exception.printStackTrace:()V
         9: .line 167
      StackMap locals:
      StackMap stack:
            aload 3 /* x */
            instanceof com.sun.tools.attach.AttachNotSupportedException
            ifeq 12
        10: .line 168
            invokestatic sun.tools.jstack.JStack.loadSAClass:()Ljava/lang/Class;
            ifnull 12
        11: .line 169
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "The -F option can be used when the target process is not responding"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        12: .line 172
      StackMap locals:
      StackMap stack:
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        end local 4 // java.lang.String msg
        end local 3 // java.lang.Exception x
        13: .line 177
      StackMap locals:
      StackMap stack:
            aload 2 /* vm */
            checkcast sun.tools.attach.HotSpotVirtualMachine
            aload 1 /* args */
            invokevirtual sun.tools.attach.HotSpotVirtualMachine.remoteDataDump:([Ljava/lang/Object;)Ljava/io/InputStream;
            astore 3 /* in */
        start local 3 // java.io.InputStream in
        14: .line 180
            sipush 256
            newarray 8
            astore 4 /* b */
        start local 4 // byte[] b
        15: .line 183
      StackMap locals: java.io.InputStream byte[]
      StackMap stack:
            aload 3 /* in */
            aload 4 /* b */
            invokevirtual java.io.InputStream.read:([B)I
            istore 5 /* n */
        start local 5 // int n
        16: .line 184
            iload 5 /* n */
            ifle 19
        17: .line 185
            new java.lang.String
            dup
            aload 4 /* b */
            iconst_0
            iload 5 /* n */
            ldc "UTF-8"
            invokespecial java.lang.String.<init>:([BIILjava/lang/String;)V
            astore 6 /* s */
        start local 6 // java.lang.String s
        18: .line 186
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            aload 6 /* s */
            invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
        end local 6 // java.lang.String s
        19: .line 188
      StackMap locals: int
      StackMap stack:
            iload 5 /* n */
        20: .line 182
            ifgt 15
        21: .line 189
            aload 3 /* in */
            invokevirtual java.io.InputStream.close:()V
        22: .line 190
            aload 2 /* vm */
            invokevirtual com.sun.tools.attach.VirtualMachine.detach:()V
        23: .line 191
            return
        end local 5 // int n
        end local 4 // byte[] b
        end local 3 // java.io.InputStream in
        end local 2 // com.sun.tools.attach.VirtualMachine vm
        end local 1 // java.lang.String[] args
        end local 0 // java.lang.String pid
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   24     0   pid  Ljava/lang/String;
            0   24     1  args  [Ljava/lang/String;
            1   24     2    vm  Lcom/sun/tools/attach/VirtualMachine;
            4   13     3     x  Ljava/lang/Exception;
            5   13     4   msg  Ljava/lang/String;
           14   24     3    in  Ljava/io/InputStream;
           15   24     4     b  [B
           16   24     5     n  I
           18   19     6     s  Ljava/lang/String;
      Exception table:
        from    to  target  type
           1     2       3  Class java.lang.Exception
    Exceptions:
      throws java.lang.Exception
    MethodParameters:
      Name  Flags
      pid   
      args  

  private static java.lang.String[] prepend(java.lang.String, java.lang.String[]);
    descriptor: (Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // java.lang.String arg
        start local 1 // java.lang.String[] args
         0: .line 195
            aload 1 /* args */
            arraylength
            iconst_1
            iadd
            anewarray java.lang.String
            astore 2 /* newargs */
        start local 2 // java.lang.String[] newargs
         1: .line 196
            aload 2 /* newargs */
            iconst_0
            aload 0 /* arg */
            aastore
         2: .line 197
            aload 1 /* args */
            iconst_0
            aload 2 /* newargs */
            iconst_1
            aload 1 /* args */
            arraylength
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         3: .line 198
            aload 2 /* newargs */
            areturn
        end local 2 // java.lang.String[] newargs
        end local 1 // java.lang.String[] args
        end local 0 // java.lang.String arg
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0      arg  Ljava/lang/String;
            0    4     1     args  [Ljava/lang/String;
            1    4     2  newargs  [Ljava/lang/String;
    MethodParameters:
      Name  Flags
      arg   
      args  

  private static void usage();
    descriptor: ()V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 203
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Usage:"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         1: .line 204
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "    jstack [-l] <pid>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         2: .line 205
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "        (to connect to running process)"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         3: .line 207
            invokestatic sun.tools.jstack.JStack.loadSAClass:()Ljava/lang/Class;
            ifnull 10
         4: .line 208
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "    jstack -F [-m] [-l] <pid>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         5: .line 209
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "        (to connect to a hung process)"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         6: .line 210
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "    jstack [-m] [-l] <executable> <core>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         7: .line 211
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "        (to connect to a core file)"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         8: .line 212
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "    jstack [-m] [-l] [server_id@]<remote server IP or hostname>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         9: .line 213
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "        (to connect to a remote debug server)"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        10: .line 216
      StackMap locals:
      StackMap stack:
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ""
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        11: .line 217
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Options:"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        12: .line 219
            invokestatic sun.tools.jstack.JStack.loadSAClass:()Ljava/lang/Class;
            ifnull 15
        13: .line 220
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "    -F  to force a thread dump. Use when jstack <pid> does not respond (process is hung)"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        14: .line 222
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "    -m  to print both java and native frames (mixed mode)"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        15: .line 225
      StackMap locals:
      StackMap stack:
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "    -l  long listing. Prints additional information about locks"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        16: .line 226
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "    -h or -help to print this help message"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        17: .line 227
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        18: .line 228
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
}
SourceFile: "JStack.java"