class com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 implements com.oracle.truffle.api.instrumentation.ExecutionEventListener
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1
  super_class: java.lang.Object
{
  private int count;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  final com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument this$1;
    descriptor: Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument;
    flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC

  private final com.oracle.truffle.api.instrumentation.TruffleInstrument$Env val$env;
    descriptor: Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
    flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC

  void <init>(com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument, com.oracle.truffle.api.instrumentation.TruffleInstrument$Env);
    descriptor: (Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument;Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
         0: .line 2399
            aload 0 /* this */
            aload 1
            putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.this$1:Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument;
            aload 0 /* this */
            aload 2
            putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.val$env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 2401
            aload 0 /* this */
            iconst_0
            putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
         2: .line 2399
            return
        end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
    MethodParameters:
         Name  Flags
      this$0   final
      val$env  final

  public void onEnter(com.oracle.truffle.api.instrumentation.EventContext, com.oracle.truffle.api.frame.VirtualFrame);
    descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;Lcom/oracle/truffle/api/frame/VirtualFrame;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=7, args_size=3
        start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
        start local 1 // com.oracle.truffle.api.instrumentation.EventContext ctx
        start local 2 // com.oracle.truffle.api.frame.VirtualFrame frame
         0: .line 2405
            iconst_1
            anewarray com.oracle.truffle.api.CallTarget
            astore 3 /* lastCallTarget */
        start local 3 // com.oracle.truffle.api.CallTarget[] lastCallTarget
         1: .line 2406
            iconst_1
            anewarray com.oracle.truffle.api.frame.Frame
            astore 4 /* lastFrame */
        start local 4 // com.oracle.truffle.api.frame.Frame[] lastFrame
         2: .line 2407
            invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
            new com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1$1
            dup
            aload 0 /* this */
            aload 3 /* lastCallTarget */
            aload 4 /* lastFrame */
            invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1$1.<init>:(Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;[Lcom/oracle/truffle/api/CallTarget;[Lcom/oracle/truffle/api/frame/Frame;)V
            invokeinterface com.oracle.truffle.api.TruffleRuntime.iterateFrames:(Lcom/oracle/truffle/api/frame/FrameInstanceVisitor;)Ljava/lang/Object;
            pop
         3: .line 2421
            aload 3 /* lastCallTarget */
            iconst_0
            aaload
            aload 4 /* lastFrame */
            iconst_0
            aaload
            invokestatic com.oracle.truffle.api.TruffleStackTrace.getAsynchronousStackTrace:(Lcom/oracle/truffle/api/CallTarget;Lcom/oracle/truffle/api/frame/Frame;)Ljava/util/List;
            astore 5 /* asyncStack */
        start local 5 // java.util.List asyncStack
         4: .line 2422
            aload 0 /* this */
            getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
            tableswitch { // 0 - 2
                    0: 5
                    1: 7
                    2: 12
              default: 20
          }
         5: .line 2424
      StackMap locals: com.oracle.truffle.api.CallTarget[] com.oracle.truffle.api.frame.Frame[] java.util.List
      StackMap stack:
            aload 0 /* this */
            aload 5 /* asyncStack */
            invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkNull:(Ljava/lang/Object;)V
         6: .line 2425
            goto 21
         7: .line 2427
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_2
            aload 5 /* asyncStack */
            invokeinterface java.util.List.size:()I
            invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkEquals:(II)V
         8: .line 2428
            aload 5 /* asyncStack */
            iconst_1
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast com.oracle.truffle.api.TruffleStackTraceElement
            astore 6 /* lastElement */
        start local 6 // com.oracle.truffle.api.TruffleStackTraceElement lastElement
         9: .line 2429
            aload 0 /* this */
            aload 6 /* lastElement */
            invokevirtual com.oracle.truffle.api.TruffleStackTraceElement.getFrame:()Lcom/oracle/truffle/api/frame/Frame;
            invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkNull:(Ljava/lang/Object;)V
        10: .line 2430
            aload 0 /* this */
            getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.val$env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
            ldc 2147483647
            invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.setAsynchronousStackDepth:(I)V
        11: .line 2431
            goto 21
        end local 6 // com.oracle.truffle.api.TruffleStackTraceElement lastElement
        12: .line 2433
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_5
            aload 5 /* asyncStack */
            invokeinterface java.util.List.size:()I
            invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkEquals:(II)V
        13: .line 2434
            aload 5 /* asyncStack */
            iconst_4
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast com.oracle.truffle.api.TruffleStackTraceElement
            astore 6 /* lastElement */
        start local 6 // com.oracle.truffle.api.TruffleStackTraceElement lastElement
        14: .line 2435
            aload 6 /* lastElement */
            invokevirtual com.oracle.truffle.api.TruffleStackTraceElement.getTarget:()Lcom/oracle/truffle/api/RootCallTarget;
            aload 6 /* lastElement */
            invokevirtual com.oracle.truffle.api.TruffleStackTraceElement.getFrame:()Lcom/oracle/truffle/api/frame/Frame;
            invokestatic com.oracle.truffle.api.TruffleStackTrace.getAsynchronousStackTrace:(Lcom/oracle/truffle/api/CallTarget;Lcom/oracle/truffle/api/frame/Frame;)Ljava/util/List;
            astore 5 /* asyncStack */
        15: .line 2436
            aload 0 /* this */
            iconst_2
            aload 5 /* asyncStack */
            invokeinterface java.util.List.size:()I
            invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkEquals:(II)V
        16: .line 2437
            aload 5 /* asyncStack */
            iconst_1
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast com.oracle.truffle.api.TruffleStackTraceElement
            astore 6 /* lastElement */
        17: .line 2438
            aload 0 /* this */
            aload 6 /* lastElement */
            invokevirtual com.oracle.truffle.api.TruffleStackTraceElement.getFrame:()Lcom/oracle/truffle/api/frame/Frame;
            invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkNull:(Ljava/lang/Object;)V
        18: .line 2439
            aload 0 /* this */
            getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.this$1:Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument;
            getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument.instrumentationFinished:Ljava/util/concurrent/CountDownLatch;
            invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
        19: .line 2440
            goto 21
        end local 6 // com.oracle.truffle.api.TruffleStackTraceElement lastElement
        20: .line 2442
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.illegalState:()V
        21: .line 2444
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
            iconst_1
            iadd
            putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
        22: .line 2445
            return
        end local 5 // java.util.List asyncStack
        end local 4 // com.oracle.truffle.api.frame.Frame[] lastFrame
        end local 3 // com.oracle.truffle.api.CallTarget[] lastCallTarget
        end local 2 // com.oracle.truffle.api.frame.VirtualFrame frame
        end local 1 // com.oracle.truffle.api.instrumentation.EventContext ctx
        end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   23     0            this  Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
            0   23     1             ctx  Lcom/oracle/truffle/api/instrumentation/EventContext;
            0   23     2           frame  Lcom/oracle/truffle/api/frame/VirtualFrame;
            1   23     3  lastCallTarget  [Lcom/oracle/truffle/api/CallTarget;
            2   23     4       lastFrame  [Lcom/oracle/truffle/api/frame/Frame;
            4   23     5      asyncStack  Ljava/util/List<Lcom/oracle/truffle/api/TruffleStackTraceElement;>;
            9   12     6     lastElement  Lcom/oracle/truffle/api/TruffleStackTraceElement;
           14   20     6     lastElement  Lcom/oracle/truffle/api/TruffleStackTraceElement;
    MethodParameters:
       Name  Flags
      ctx    
      frame  

  private void illegalState();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
         0: .line 2449
            new java.lang.IllegalStateException
            dup
            aload 0 /* this */
            getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
            invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
    Exceptions:
      throws java.lang.IllegalStateException
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()

  private void checkEquals(int, int);
    descriptor: (II)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
        start local 1 // int expected
        start local 2 // int found
         0: .line 2454
            iload 1 /* expected */
            i2l
            iload 2 /* found */
            i2l
            invokestatic org.junit.Assert.assertEquals:(JJ)V
         1: .line 2455
            return
        end local 2 // int found
        end local 1 // int expected
        end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    2     0      this  Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
            0    2     1  expected  I
            0    2     2     found  I
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
          Name  Flags
      expected  
      found     

  private void checkNull(java.lang.Object);
    descriptor: (Ljava/lang/Object;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=2, args_size=2
        start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
        start local 1 // java.lang.Object obj
         0: .line 2459
            aload 1 /* obj */
            invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
         1: .line 2460
            return
        end local 1 // java.lang.Object obj
        end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
            0    2     1   obj  Ljava/lang/Object;
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
      Name  Flags
      obj   

  public void onReturnValue(com.oracle.truffle.api.instrumentation.EventContext, com.oracle.truffle.api.frame.VirtualFrame, java.lang.Object);
    descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;Lcom/oracle/truffle/api/frame/VirtualFrame;Ljava/lang/Object;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=0, locals=4, args_size=4
        start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
        start local 1 // com.oracle.truffle.api.instrumentation.EventContext ctx
        start local 2 // com.oracle.truffle.api.frame.VirtualFrame frame
        start local 3 // java.lang.Object result
         0: .line 2464
            return
        end local 3 // java.lang.Object result
        end local 2 // com.oracle.truffle.api.frame.VirtualFrame frame
        end local 1 // com.oracle.truffle.api.instrumentation.EventContext ctx
        end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    1     0    this  Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
            0    1     1     ctx  Lcom/oracle/truffle/api/instrumentation/EventContext;
            0    1     2   frame  Lcom/oracle/truffle/api/frame/VirtualFrame;
            0    1     3  result  Ljava/lang/Object;
    MethodParameters:
        Name  Flags
      ctx     
      frame   
      result  

  public void onReturnExceptional(com.oracle.truffle.api.instrumentation.EventContext, com.oracle.truffle.api.frame.VirtualFrame, java.lang.Throwable);
    descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;Lcom/oracle/truffle/api/frame/VirtualFrame;Ljava/lang/Throwable;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=0, locals=4, args_size=4
        start local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
        start local 1 // com.oracle.truffle.api.instrumentation.EventContext ctx
        start local 2 // com.oracle.truffle.api.frame.VirtualFrame frame
        start local 3 // java.lang.Throwable exception
         0: .line 2468
            return
        end local 3 // java.lang.Throwable exception
        end local 2 // com.oracle.truffle.api.frame.VirtualFrame frame
        end local 1 // com.oracle.truffle.api.instrumentation.EventContext ctx
        end local 0 // com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    1     0       this  Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
            0    1     1        ctx  Lcom/oracle/truffle/api/instrumentation/EventContext;
            0    1     2      frame  Lcom/oracle/truffle/api/frame/VirtualFrame;
            0    1     3  exception  Ljava/lang/Throwable;
    MethodParameters:
           Name  Flags
      ctx        
      frame      
      exception  
}
SourceFile: "InstrumentationTest.java"
EnclosingMethod: com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument.onCreate:(Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;)V
NestHost: com.oracle.truffle.api.instrumentation.test.InstrumentationTest
InnerClasses:
  public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
  public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
  public AsynchronousStacksInstrument = com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument of com.oracle.truffle.api.instrumentation.test.InstrumentationTest
  com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1
  com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1$1