public class org.graalvm.polyglot.examples.CancelExecution
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.graalvm.polyglot.examples.CancelExecution
  super_class: java.lang.Object
{
  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 16
            ldc Lorg/graalvm/polyglot/examples/CancelExecution;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic org.graalvm.polyglot.examples.CancelExecution.$assertionsDisabled:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.polyglot.examples.CancelExecution this
         0: .line 16
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.graalvm.polyglot.examples.CancelExecution this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/polyglot/examples/CancelExecution;

  public static void main(java.lang.String[]);
    descriptor: ([Ljava/lang/String;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=7, args_size=1
        start local 0 // java.lang.String[] args
         0: .line 19
            iconst_1
            invokestatic java.util.concurrent.Executors.newFixedThreadPool:(I)Ljava/util/concurrent/ExecutorService;
            astore 1 /* service */
        start local 1 // java.util.concurrent.ExecutorService service
         1: .line 21
            iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            ldc "js"
            aastore
            invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
            astore 2 /* context */
        start local 2 // org.graalvm.polyglot.Context context
         2: .line 24
            aload 1 /* service */
            aload 2 /* context */
            invokedynamic call(Lorg/graalvm/polyglot/Context;)Ljava/util/concurrent/Callable;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  ()Ljava/lang/Object;
                  org/graalvm/polyglot/examples/CancelExecution.lambda$0(Lorg/graalvm/polyglot/Context;)Lorg/graalvm/polyglot/Value; (6)
                  ()Lorg/graalvm/polyglot/Value;
            invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
            astore 3 /* future */
        start local 3 // java.util.concurrent.Future future
         3: .line 27
            ldc 1000
            invokestatic java.lang.Thread.sleep:(J)V
         4: .line 34
            aload 2 /* context */
            iconst_1
            invokevirtual org.graalvm.polyglot.Context.close:(Z)V
         5: .line 37
            aload 3 /* future */
            invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
            pop
         6: .line 38
            goto 14
      StackMap locals: java.lang.String[] java.util.concurrent.ExecutorService org.graalvm.polyglot.Context java.util.concurrent.Future
      StackMap stack: java.util.concurrent.ExecutionException
         7: astore 4 /* e */
        start local 4 // java.util.concurrent.ExecutionException e
         8: .line 39
            aload 4 /* e */
            invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
            checkcast org.graalvm.polyglot.PolyglotException
            astore 5 /* polyglotException */
        start local 5 // org.graalvm.polyglot.PolyglotException polyglotException
         9: .line 40
            aload 5 /* polyglotException */
            invokevirtual org.graalvm.polyglot.PolyglotException.printStackTrace:()V
        10: .line 45
            getstatic org.graalvm.polyglot.examples.CancelExecution.$assertionsDisabled:Z
            ifne 14
            aload 5 /* polyglotException */
            invokevirtual org.graalvm.polyglot.PolyglotException.isCancelled:()Z
            ifne 14
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        end local 5 // org.graalvm.polyglot.PolyglotException polyglotException
        end local 4 // java.util.concurrent.ExecutionException e
        end local 3 // java.util.concurrent.Future future
        end local 2 // org.graalvm.polyglot.Context context
        11: .line 47
      StackMap locals: java.lang.String[] java.util.concurrent.ExecutorService
      StackMap stack: java.lang.Throwable
            astore 6
        12: .line 48
            aload 1 /* service */
            invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
        13: .line 49
            aload 6
            athrow
        14: .line 48
      StackMap locals:
      StackMap stack:
            aload 1 /* service */
            invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
        15: .line 50
            return
        end local 1 // java.util.concurrent.ExecutorService service
        end local 0 // java.lang.String[] args
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   16     0               args  [Ljava/lang/String;
            1   16     1            service  Ljava/util/concurrent/ExecutorService;
            2   11     2            context  Lorg/graalvm/polyglot/Context;
            3   11     3             future  Ljava/util/concurrent/Future<Lorg/graalvm/polyglot/Value;>;
            8   11     4                  e  Ljava/util/concurrent/ExecutionException;
            9   11     5  polyglotException  Lorg/graalvm/polyglot/PolyglotException;
      Exception table:
        from    to  target  type
           5     6       7  Class java.util.concurrent.ExecutionException
           1    11      11  any
    Exceptions:
      throws java.lang.InterruptedException
    MethodParameters:
      Name  Flags
      args  

  private static org.graalvm.polyglot.Value lambda$0(org.graalvm.polyglot.Context);
    descriptor: (Lorg/graalvm/polyglot/Context;)Lorg/graalvm/polyglot/Value;
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=3, locals=1, args_size=1
         0: .line 24
            aload 0
            ldc "js"
            ldc "while(true);"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
    Exceptions:
      throws java.lang.Exception
}
SourceFile: "CancelExecution.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles