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 2
         1: .line 50
            return
         2: .line 53
      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
         3: goto 10
         4: .line 54
      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
         5: .line 55
            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
         6: .line 56
            aload 0 /* this */
            dup
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
            iconst_1
            iadd
            putfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
         7: .line 58
            iload 1 /* maxDepth */
            ifle 9
            aload 0 /* this */
            getfield sun.jvm.hotspot.runtime.ThreadStackTrace.depth:I
            iload 1 /* maxDepth */
            if_icmpne 9
         8: .line 60
            goto 15
        end local 3 // sun.jvm.hotspot.runtime.StackFrameInfo frame
         9: .line 53
      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:
        10: aload 2 /* vf */
            ifnonnull 4
        end local 2 // sun.jvm.hotspot.runtime.JavaVFrame vf
        11: .line 63
            goto 15
      StackMap locals: sun.jvm.hotspot.runtime.ThreadStackTrace int
      StackMap stack: java.lang.Exception
        12: astore 2 /* e */
        start local 2 // java.lang.Exception e
        13: .line 64
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Error occurred during stack walking:"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        14: .line 65
            aload 2 /* e */
            invokevirtual java.lang.Exception.printStackTrace:()V
        end local 2 // java.lang.Exception e
        15: .line 67
      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   16     0      this  Lsun/jvm/hotspot/runtime/ThreadStackTrace;
            0   16     1  maxDepth  I
            3   11     2        vf  Lsun/jvm/hotspot/runtime/JavaVFrame;
            5    9     3     frame  Lsun/jvm/hotspot/runtime/StackFrameInfo;
           13   15     2         e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           2    11      12  Class java.lang.Exception
    MethodParameters:
          Name  Flags
      maxDepth  
}
SourceFile: "ThreadStackTrace.java"