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 41
            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=10, args_size=1
        start local 0 // java.lang.String[] args
         0: .line 44
            aload 0 /* args */
            arraylength
            ifne 2
         1: .line 45
            iconst_1
            invokestatic sun.tools.jstack.JStack.usage:(I)V
         2: .line 48
      StackMap locals:
      StackMap stack:
            aload 0 /* args */
            invokestatic sun.tools.jstack.JStack.checkForUnsupportedOptions:([Ljava/lang/String;)V
         3: .line 50
            iconst_0
            istore 1 /* locks */
        start local 1 // boolean locks
         4: .line 53
            iconst_0
            istore 2 /* optionCount */
        start local 2 // int optionCount
         5: .line 54
            goto 17
         6: .line 55
      StackMap locals: int int
      StackMap stack:
            aload 0 /* args */
            iload 2 /* optionCount */
            aaload
            astore 3 /* arg */
        start local 3 // java.lang.String arg
         7: .line 56
            aload 3 /* arg */
            ldc "-"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 9
         8: .line 57
            goto 18
         9: .line 59
      StackMap locals: java.lang.String
      StackMap stack:
            aload 3 /* arg */
            ldc "-help"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 10
            aload 3 /* arg */
            ldc "-h"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 12
        10: .line 60
      StackMap locals:
      StackMap stack:
            iconst_0
            invokestatic sun.tools.jstack.JStack.usage:(I)V
        11: .line 61
            goto 16
        12: .line 63
      StackMap locals:
      StackMap stack:
            aload 3 /* arg */
            ldc "-l"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 15
        13: .line 64
            iconst_1
            istore 1 /* locks */
        14: .line 65
            goto 16
        15: .line 66
      StackMap locals:
      StackMap stack:
            iconst_1
            invokestatic sun.tools.jstack.JStack.usage:(I)V
        16: .line 69
      StackMap locals:
      StackMap stack:
            iinc 2 /* optionCount */ 1
        end local 3 // java.lang.String arg
        17: .line 54
      StackMap locals:
      StackMap stack:
            iload 2 /* optionCount */
            aload 0 /* args */
            arraylength
            if_icmplt 6
        18: .line 73
      StackMap locals:
      StackMap stack:
            aload 0 /* args */
            arraylength
            iload 2 /* optionCount */
            isub
            istore 3 /* paramCount */
        start local 3 // int paramCount
        19: .line 74
            iload 3 /* paramCount */
            iconst_1
            if_icmpeq 21
        20: .line 75
            iconst_1
            invokestatic sun.tools.jstack.JStack.usage:(I)V
        21: .line 79
      StackMap locals: int
      StackMap stack:
            aload 0 /* args */
            iload 2 /* optionCount */
            aaload
            astore 4 /* pidArg */
        start local 4 // java.lang.String pidArg
        22: .line 81
            iload 1 /* locks */
            ifeq 25
        23: .line 82
            iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            ldc "-l"
            aastore
            astore 5 /* params */
        start local 5 // java.lang.String[] params
        24: .line 83
            goto 26
        end local 5 // java.lang.String[] params
        25: .line 84
      StackMap locals: java.lang.String
      StackMap stack:
            iconst_0
            anewarray java.lang.String
            astore 5 /* params */
        start local 5 // java.lang.String[] params
        26: .line 86
      StackMap locals: java.lang.String[]
      StackMap stack:
            new sun.tools.common.ProcessArgumentMatcher
            dup
            aload 4 /* pidArg */
            invokespecial sun.tools.common.ProcessArgumentMatcher.<init>:(Ljava/lang/String;)V
            astore 6 /* ap */
        start local 6 // sun.tools.common.ProcessArgumentMatcher ap
        27: .line 87
            aload 6 /* ap */
            ldc Lsun/tools/jstack/JStack;
            invokevirtual sun.tools.common.ProcessArgumentMatcher.getVirtualMachinePids:(Ljava/lang/Class;)Ljava/util/Collection;
            astore 7 /* pids */
        start local 7 // java.util.Collection pids
        28: .line 89
            aload 7 /* pids */
            invokeinterface java.util.Collection.isEmpty:()Z
            ifeq 31
        29: .line 90
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "Could not find any processes matching : '"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 4 /* pidArg */
            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;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        30: .line 91
            iconst_1
            invokestatic java.lang.System.exit:(I)V
        31: .line 94
      StackMap locals: sun.tools.common.ProcessArgumentMatcher java.util.Collection
      StackMap stack:
            aload 7 /* pids */
            invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
            astore 9
            goto 36
      StackMap locals: java.lang.String[] int int int java.lang.String java.lang.String[] sun.tools.common.ProcessArgumentMatcher java.util.Collection top java.util.Iterator
      StackMap stack:
        32: aload 9
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.String
            astore 8 /* pid */
        start local 8 // java.lang.String pid
        33: .line 95
            aload 7 /* pids */
            invokeinterface java.util.Collection.size:()I
            iconst_1
            if_icmple 35
        34: .line 96
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "Pid:"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 8 /* pid */
            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
        35: .line 98
      StackMap locals: java.lang.String[] int int int java.lang.String java.lang.String[] sun.tools.common.ProcessArgumentMatcher java.util.Collection java.lang.String java.util.Iterator
      StackMap stack:
            aload 8 /* pid */
            aload 5 /* params */
            invokestatic sun.tools.jstack.JStack.runThreadDump:(Ljava/lang/String;[Ljava/lang/String;)V
        end local 8 // java.lang.String pid
        36: .line 94
      StackMap locals: java.lang.String[] int int int java.lang.String java.lang.String[] sun.tools.common.ProcessArgumentMatcher java.util.Collection top java.util.Iterator
      StackMap stack:
            aload 9
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 32
        37: .line 100
            return
        end local 7 // java.util.Collection pids
        end local 6 // sun.tools.common.ProcessArgumentMatcher ap
        end local 5 // java.lang.String[] params
        end local 4 // java.lang.String pidArg
        end local 3 // int paramCount
        end local 2 // int optionCount
        end local 1 // boolean locks
        end local 0 // java.lang.String[] args
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   38     0         args  [Ljava/lang/String;
            4   38     1        locks  Z
            5   38     2  optionCount  I
            7   17     3          arg  Ljava/lang/String;
           19   38     3   paramCount  I
           22   38     4       pidArg  Ljava/lang/String;
           24   25     5       params  [Ljava/lang/String;
           26   38     5       params  [Ljava/lang/String;
           27   38     6           ap  Lsun/tools/common/ProcessArgumentMatcher;
           28   38     7         pids  Ljava/util/Collection<Ljava/lang/String;>;
           33   36     8          pid  Ljava/lang/String;
    Exceptions:
      throws java.lang.Exception
    MethodParameters:
      Name  Flags
      args  

  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 104
            aconst_null
            astore 2 /* vm */
        start local 2 // com.sun.tools.attach.VirtualMachine vm
         1: .line 106
            aload 0 /* pid */
            invokestatic com.sun.tools.attach.VirtualMachine.attach:(Ljava/lang/String;)Lcom/sun/tools/attach/VirtualMachine;
            astore 2 /* vm */
         2: .line 107
            goto 10
      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 108
            aload 3 /* x */
            invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
            astore 4 /* msg */
        start local 4 // java.lang.String msg
         5: .line 109
            aload 4 /* msg */
            ifnull 8
         6: .line 110
            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 111
            goto 9
         8: .line 112
      StackMap locals: java.lang.Exception java.lang.String
      StackMap stack:
            aload 3 /* x */
            invokevirtual java.lang.Exception.printStackTrace:()V
         9: .line 114
      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
        10: .line 119
      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
        11: .line 122
            sipush 256
            newarray 8
            astore 4 /* b */
        start local 4 // byte[] b
        12: .line 125
      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
        13: .line 126
            iload 5 /* n */
            ifle 16
        14: .line 127
            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
        15: .line 128
            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
        16: .line 130
      StackMap locals: int
      StackMap stack:
            iload 5 /* n */
        17: .line 124
            ifgt 12
        18: .line 131
            aload 3 /* in */
            invokevirtual java.io.InputStream.close:()V
        19: .line 132
            aload 2 /* vm */
            invokevirtual com.sun.tools.attach.VirtualMachine.detach:()V
        20: .line 133
            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   21     0   pid  Ljava/lang/String;
            0   21     1  args  [Ljava/lang/String;
            1   21     2    vm  Lcom/sun/tools/attach/VirtualMachine;
            4   10     3     x  Ljava/lang/Exception;
            5   10     4   msg  Ljava/lang/String;
           11   21     3    in  Ljava/io/InputStream;
           12   21     4     b  [B
           13   21     5     n  I
           15   16     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 void checkForUnsupportedOptions(java.lang.String[]);
    descriptor: ([Ljava/lang/String;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=6, args_size=1
        start local 0 // java.lang.String[] args
         0: .line 139
            iconst_0
            istore 1 /* paramCount */
        start local 1 // int paramCount
         1: .line 141
            aload 0 /* args */
            dup
            astore 5
            arraylength
            istore 4
            iconst_0
            istore 3
            goto 10
      StackMap locals: java.lang.String[] int top int int java.lang.String[]
      StackMap stack:
         2: aload 5
            iload 3
            aaload
            astore 2 /* s */
        start local 2 // java.lang.String s
         3: .line 142
            aload 2 /* s */
            ldc "-F"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 5
         4: .line 143
            ldc "-F option used"
            invokestatic sun.tools.jstack.JStack.SAOptionError:(Ljava/lang/String;)V
         5: .line 146
      StackMap locals: java.lang.String[] int java.lang.String int int java.lang.String[]
      StackMap stack:
            aload 2 /* s */
            ldc "-m"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 7
         6: .line 147
            ldc "-m option used"
            invokestatic sun.tools.jstack.JStack.SAOptionError:(Ljava/lang/String;)V
         7: .line 150
      StackMap locals:
      StackMap stack:
            aload 2 /* s */
            ldc "-"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 9
         8: .line 151
            iinc 1 /* paramCount */ 1
        end local 2 // java.lang.String s
         9: .line 141
      StackMap locals: java.lang.String[] int top int int java.lang.String[]
      StackMap stack:
            iinc 3 1
      StackMap locals:
      StackMap stack:
        10: iload 3
            iload 4
            if_icmplt 2
        11: .line 155
            iload 1 /* paramCount */
            iconst_1
            if_icmple 13
        12: .line 156
            ldc "More than one non-option argument"
            invokestatic sun.tools.jstack.JStack.SAOptionError:(Ljava/lang/String;)V
        13: .line 158
      StackMap locals: java.lang.String[] int
      StackMap stack:
            return
        end local 1 // int paramCount
        end local 0 // java.lang.String[] args
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   14     0        args  [Ljava/lang/String;
            1   14     1  paramCount  I
            3    9     2           s  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      args  

  private static void SAOptionError(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // java.lang.String msg
         0: .line 161
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "Error: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* 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
         1: .line 162
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "Cannot connect to core dump or remote debug server. Use jhsdb jstack instead"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         2: .line 163
            iconst_1
            invokestatic java.lang.System.exit:(I)V
         3: .line 164
            return
        end local 0 // java.lang.String msg
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0   msg  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      msg   

  private static void usage(int);
    descriptor: (I)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // int exit
         0: .line 168
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "Usage:"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         1: .line 169
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "    jstack [-l] <pid>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         2: .line 170
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "        (to connect to running process)"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         3: .line 171
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc ""
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         4: .line 172
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "Options:"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         5: .line 173
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "    -l  long listing. Prints additional information about locks"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         6: .line 174
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "    -h or -help to print this help message"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         7: .line 175
            iload 0 /* exit */
            invokestatic java.lang.System.exit:(I)V
         8: .line 176
            return
        end local 0 // int exit
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  exit  I
    MethodParameters:
      Name  Flags
      exit  
}
SourceFile: "JStack.java"