public class sun.jvm.hotspot.runtime.ThreadStackTrace
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: sun.jvm.hotspot.runtime.ThreadStackTrace
  super_class: java.lang.Object
{
  private sun.jvm.hotspot.runtime.JavaThread thread;
    descriptor: Lsun/jvm/hotspot/runtime/JavaThread;
    flags: (0x0002) ACC_PRIVATE

  private int depth;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private java.util.ArrayList<sun.jvm.hotspot.runtime.StackFrameInfo> frames;
    descriptor: Ljava/util/ArrayList;
    flags: (0x0002) ACC_PRIVATE
    Signature: Ljava/util/ArrayList<Lsun/jvm/hotspot/runtime/StackFrameInfo;>;

  public void <init>(sun.jvm.hotspot.runtime.JavaThread);
    descriptor: (Lsun/jvm/hotspot/runtime/JavaThread;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // sun.jvm.hotspot.runtime.ThreadStackTrace this
        start local 1 // sun.jvm.hotspot.runtime.JavaThread t
         0: .line 34
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 35
            aload 0 /* this */
            aload 1 /* t */
            putfield sun.jvm.hotspot.runtime.ThreadStackTrace.thread:Lsun/jvm/hotspot/runtime/JavaThread;
         2: .line 36
            aload 0 /* this */
            iconst_0
            putfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
         3: .line 37
            aload 0 /* this */
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            putfield sun.jvm.hotspot.runtime.ThreadStackTrace.frames:Ljava/util/ArrayList;
         4: .line 38
            return
        end local 1 // sun.jvm.hotspot.runtime.JavaThread t
        end local 0 // sun.jvm.hotspot.runtime.ThreadStackTrace this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lsun/jvm/hotspot/runtime/ThreadStackTrace;
            0    5     1     t  Lsun/jvm/hotspot/runtime/JavaThread;
    MethodParameters:
      Name  Flags
      t     

  public int getStackDepth();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // sun.jvm.hotspot.runtime.ThreadStackTrace this
         0: .line 41
            aload 0 /* this */
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
            ireturn
        end local 0 // sun.jvm.hotspot.runtime.ThreadStackTrace this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lsun/jvm/hotspot/runtime/ThreadStackTrace;

  public sun.jvm.hotspot.runtime.StackFrameInfo stackFrameAt(int);
    descriptor: (I)Lsun/jvm/hotspot/runtime/StackFrameInfo;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // sun.jvm.hotspot.runtime.ThreadStackTrace this
        start local 1 // int index
         0: .line 45
            aload 0 /* this */
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.frames:Ljava/util/ArrayList;
            iload 1 /* index */
            invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
            checkcast sun.jvm.hotspot.runtime.StackFrameInfo
            areturn
        end local 1 // int index
        end local 0 // sun.jvm.hotspot.runtime.ThreadStackTrace this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    1     0   this  Lsun/jvm/hotspot/runtime/ThreadStackTrace;
            0    1     1  index  I
    MethodParameters:
       Name  Flags
      index  

  public void dumpStack(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // sun.jvm.hotspot.runtime.ThreadStackTrace this
        start local 1 // int maxDepth
         0: .line 49
            aload 0 /* this */
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.thread:Lsun/jvm/hotspot/runtime/JavaThread;
            invokevirtual sun.jvm.hotspot.runtime.JavaThread.isJavaThread:()Z
            ifne 3
         1: .line 50
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "dumpStack: not java Thread."
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         2: .line 51
            return
         3: .line 54
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.thread:Lsun/jvm/hotspot/runtime/JavaThread;
            invokevirtual sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg:()Lsun/jvm/hotspot/runtime/JavaVFrame;
            astore 2 /* vf */
        start local 2 // sun.jvm.hotspot.runtime.JavaVFrame vf
         4: goto 11
         5: .line 55
      StackMap locals: sun.jvm.hotspot.runtime.JavaVFrame
      StackMap stack:
            new sun.jvm.hotspot.runtime.StackFrameInfo
            dup
            aload 2 /* vf */
            invokespecial sun.jvm.hotspot.runtime.StackFrameInfo.<init>:(Lsun/jvm/hotspot/runtime/JavaVFrame;)V
            astore 3 /* frame */
        start local 3 // sun.jvm.hotspot.runtime.StackFrameInfo frame
         6: .line 56
            aload 0 /* this */
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.frames:Ljava/util/ArrayList;
            aload 3 /* frame */
            invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
            pop
         7: .line 57
            aload 0 /* this */
            dup
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
            iconst_1
            iadd
            putfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
         8: .line 59
            iload 1 /* maxDepth */
            ifle 10
            aload 0 /* this */
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
            iload 1 /* maxDepth */
            if_icmpne 10
         9: .line 61
            goto 16
        end local 3 // sun.jvm.hotspot.runtime.StackFrameInfo frame
        10: .line 54
      StackMap locals:
      StackMap stack:
            aload 2 /* vf */
            invokevirtual sun.jvm.hotspot.runtime.JavaVFrame.javaSender:()Lsun/jvm/hotspot/runtime/JavaVFrame;
            astore 2 /* vf */
      StackMap locals:
      StackMap stack:
        11: aload 2 /* vf */
            ifnonnull 5
        end local 2 // sun.jvm.hotspot.runtime.JavaVFrame vf
        12: .line 64
            goto 16
      StackMap locals: sun.jvm.hotspot.runtime.ThreadStackTrace int
      StackMap stack: java.lang.Exception
        13: astore 2 /* e */
        start local 2 // java.lang.Exception e
        14: .line 65
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Error occurred during stack walking:"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        15: .line 66
            aload 2 /* e */
            invokevirtual java.lang.Exception.printStackTrace:()V
        end local 2 // java.lang.Exception e
        16: .line 68
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int maxDepth
        end local 0 // sun.jvm.hotspot.runtime.ThreadStackTrace this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   17     0      this  Lsun/jvm/hotspot/runtime/ThreadStackTrace;
            0   17     1  maxDepth  I
            4   12     2        vf  Lsun/jvm/hotspot/runtime/JavaVFrame;
            6   10     3     frame  Lsun/jvm/hotspot/runtime/StackFrameInfo;
           14   16     2         e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           3    12      13  Class java.lang.Exception
    MethodParameters:
          Name  Flags
      maxDepth  
}
SourceFile: "ThreadStackTrace.java"