class jdk.jshell.execution.JdiEventHandler implements java.lang.Runnable
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.jshell.execution.JdiEventHandler
  super_class: java.lang.Object
{
  private final java.lang.Thread thread;
    descriptor: Ljava/lang/Thread;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private volatile boolean connected;
    descriptor: Z
    flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE

  private boolean completed;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private final com.sun.jdi.VirtualMachine vm;
    descriptor: Lcom/sun/jdi/VirtualMachine;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.function.Consumer<java.lang.String> reportVMExit;
    descriptor: Ljava/util/function/Consumer;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/function/Consumer<Ljava/lang/String;>;

  void <init>(com.sun.jdi.VirtualMachine, java.util.function.Consumer<java.lang.String>);
    descriptor: (Lcom/sun/jdi/VirtualMachine;Ljava/util/function/Consumer;)V
    flags: (0x0000) 
    Code:
      stack=5, locals=3, args_size=3
        start local 0 // jdk.jshell.execution.JdiEventHandler this
        start local 1 // com.sun.jdi.VirtualMachine vm
        start local 2 // java.util.function.Consumer reportVMExit
         0: .line 52
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 40
            aload 0 /* this */
            iconst_1
            putfield jdk.jshell.execution.JdiEventHandler.connected:Z
         2: .line 41
            aload 0 /* this */
            iconst_0
            putfield jdk.jshell.execution.JdiEventHandler.completed:Z
         3: .line 53
            aload 0 /* this */
            aload 1 /* vm */
            putfield jdk.jshell.execution.JdiEventHandler.vm:Lcom/sun/jdi/VirtualMachine;
         4: .line 54
            aload 0 /* this */
            aload 2 /* reportVMExit */
            putfield jdk.jshell.execution.JdiEventHandler.reportVMExit:Ljava/util/function/Consumer;
         5: .line 55
            aload 0 /* this */
            new java.lang.Thread
            dup
            aload 0 /* this */
            ldc "event-handler"
            invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
            putfield jdk.jshell.execution.JdiEventHandler.thread:Ljava/lang/Thread;
         6: .line 56
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.thread:Ljava/lang/Thread;
            iconst_1
            invokevirtual java.lang.Thread.setDaemon:(Z)V
         7: .line 57
            return
        end local 2 // java.util.function.Consumer reportVMExit
        end local 1 // com.sun.jdi.VirtualMachine vm
        end local 0 // jdk.jshell.execution.JdiEventHandler this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    8     0          this  Ljdk/jshell/execution/JdiEventHandler;
            0    8     1            vm  Lcom/sun/jdi/VirtualMachine;
            0    8     2  reportVMExit  Ljava/util/function/Consumer<Ljava/lang/String;>;
    Signature: (Lcom/sun/jdi/VirtualMachine;Ljava/util/function/Consumer<Ljava/lang/String;>;)V
    MethodParameters:
              Name  Flags
      vm            
      reportVMExit  

  void start();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.jshell.execution.JdiEventHandler this
         0: .line 63
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.thread:Ljava/lang/Thread;
            invokevirtual java.lang.Thread.start:()V
         1: .line 64
            return
        end local 0 // jdk.jshell.execution.JdiEventHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/jshell/execution/JdiEventHandler;

  synchronized void shutdown();
    descriptor: ()V
    flags: (0x0020) ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.jshell.execution.JdiEventHandler this
         0: .line 67
            aload 0 /* this */
            iconst_0
            putfield jdk.jshell.execution.JdiEventHandler.connected:Z
         1: .line 68
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.thread:Ljava/lang/Thread;
            invokevirtual java.lang.Thread.interrupt:()V
         2: .line 69
            goto 6
         3: .line 70
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.wait:()V
         4: goto 6
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
         5: pop
         6: .line 69
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.completed:Z
            ifeq 3
         7: .line 72
            return
        end local 0 // jdk.jshell.execution.JdiEventHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Ljdk/jshell/execution/JdiEventHandler;
      Exception table:
        from    to  target  type
           3     4       5  Class java.lang.InterruptedException

  public void run();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=5, args_size=1
        start local 0 // jdk.jshell.execution.JdiEventHandler this
         0: .line 76
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.vm:Lcom/sun/jdi/VirtualMachine;
            invokeinterface com.sun.jdi.VirtualMachine.eventQueue:()Lcom/sun/jdi/event/EventQueue;
            astore 1 /* queue */
        start local 1 // com.sun.jdi.event.EventQueue queue
         1: .line 77
            goto 15
         2: .line 79
      StackMap locals: com.sun.jdi.event.EventQueue
      StackMap stack:
            aload 1 /* queue */
            invokeinterface com.sun.jdi.event.EventQueue.remove:()Lcom/sun/jdi/event/EventSet;
            astore 2 /* eventSet */
        start local 2 // com.sun.jdi.event.EventSet eventSet
         3: .line 80
            iconst_0
            istore 3 /* resumeStoppedApp */
        start local 3 // boolean resumeStoppedApp
         4: .line 81
            aload 2 /* eventSet */
            invokeinterface com.sun.jdi.event.EventSet.eventIterator:()Lcom/sun/jdi/event/EventIterator;
            astore 4 /* it */
        start local 4 // com.sun.jdi.event.EventIterator it
         5: .line 82
            goto 7
         6: .line 83
      StackMap locals: com.sun.jdi.event.EventSet int com.sun.jdi.event.EventIterator
      StackMap stack:
            iload 3 /* resumeStoppedApp */
            aload 0 /* this */
            aload 4 /* it */
            invokeinterface com.sun.jdi.event.EventIterator.nextEvent:()Lcom/sun/jdi/event/Event;
            invokevirtual jdk.jshell.execution.JdiEventHandler.handleEvent:(Lcom/sun/jdi/event/Event;)Z
            ior
            istore 3 /* resumeStoppedApp */
         7: .line 82
      StackMap locals:
      StackMap stack:
            aload 4 /* it */
            invokeinterface com.sun.jdi.event.EventIterator.hasNext:()Z
            ifne 6
         8: .line 86
            iload 3 /* resumeStoppedApp */
            ifeq 15
         9: .line 87
            aload 2 /* eventSet */
            invokeinterface com.sun.jdi.event.EventSet.resume:()V
        end local 4 // com.sun.jdi.event.EventIterator it
        end local 3 // boolean resumeStoppedApp
        end local 2 // com.sun.jdi.event.EventSet eventSet
        10: .line 89
            goto 15
      StackMap locals: jdk.jshell.execution.JdiEventHandler com.sun.jdi.event.EventQueue
      StackMap stack: java.lang.InterruptedException
        11: pop
            goto 15
        12: .line 91
      StackMap locals:
      StackMap stack: com.sun.jdi.VMDisconnectedException
            pop
        13: .line 92
            aload 0 /* this */
            invokevirtual jdk.jshell.execution.JdiEventHandler.handleDisconnectedException:()V
        14: .line 93
            goto 16
        15: .line 77
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.connected:Z
            ifne 2
        16: .line 96
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            astore 2
            monitorenter
        17: .line 97
            aload 0 /* this */
            iconst_1
            putfield jdk.jshell.execution.JdiEventHandler.completed:Z
        18: .line 98
            aload 0 /* this */
            invokevirtual java.lang.Object.notifyAll:()V
        19: .line 96
            aload 2
            monitorexit
        20: goto 23
      StackMap locals: jdk.jshell.execution.JdiEventHandler com.sun.jdi.event.EventQueue jdk.jshell.execution.JdiEventHandler
      StackMap stack: java.lang.Throwable
        21: aload 2
            monitorexit
        22: athrow
        23: .line 100
      StackMap locals:
      StackMap stack:
            return
        end local 1 // com.sun.jdi.event.EventQueue queue
        end local 0 // jdk.jshell.execution.JdiEventHandler this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   24     0              this  Ljdk/jshell/execution/JdiEventHandler;
            1   24     1             queue  Lcom/sun/jdi/event/EventQueue;
            3   10     2          eventSet  Lcom/sun/jdi/event/EventSet;
            4   10     3  resumeStoppedApp  Z
            5   10     4                it  Lcom/sun/jdi/event/EventIterator;
      Exception table:
        from    to  target  type
           2    10      11  Class java.lang.InterruptedException
           2    10      12  Class com.sun.jdi.VMDisconnectedException
          17    20      21  any
          21    22      21  any

  private boolean handleEvent(com.sun.jdi.event.Event);
    descriptor: (Lcom/sun/jdi/event/Event;)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.jshell.execution.JdiEventHandler this
        start local 1 // com.sun.jdi.event.Event event
         0: .line 103
            aload 0 /* this */
            aload 1 /* event */
            invokevirtual jdk.jshell.execution.JdiEventHandler.handleExitEvent:(Lcom/sun/jdi/event/Event;)V
         1: .line 104
            iconst_1
            ireturn
        end local 1 // com.sun.jdi.event.Event event
        end local 0 // jdk.jshell.execution.JdiEventHandler this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Ljdk/jshell/execution/JdiEventHandler;
            0    2     1  event  Lcom/sun/jdi/event/Event;
    MethodParameters:
       Name  Flags
      event  

  private void handleExitEvent(com.sun.jdi.event.Event);
    descriptor: (Lcom/sun/jdi/event/Event;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.jshell.execution.JdiEventHandler this
        start local 1 // com.sun.jdi.event.Event event
         0: .line 108
            aload 1 /* event */
            instanceof com.sun.jdi.event.VMDeathEvent
            ifeq 3
         1: .line 109
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.reportVMExit:Ljava/util/function/Consumer;
            ldc "VM Died"
            invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
         2: .line 110
            goto 6
      StackMap locals:
      StackMap stack:
         3: aload 1 /* event */
            instanceof com.sun.jdi.event.VMDisconnectEvent
            ifeq 6
         4: .line 111
            aload 0 /* this */
            iconst_0
            putfield jdk.jshell.execution.JdiEventHandler.connected:Z
         5: .line 112
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.reportVMExit:Ljava/util/function/Consumer;
            ldc "VM Disconnected"
            invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
         6: .line 116
      StackMap locals:
      StackMap stack:
            return
        end local 1 // com.sun.jdi.event.Event event
        end local 0 // jdk.jshell.execution.JdiEventHandler this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    7     0   this  Ljdk/jshell/execution/JdiEventHandler;
            0    7     1  event  Lcom/sun/jdi/event/Event;
    MethodParameters:
       Name  Flags
      event  

  private synchronized void handleDisconnectedException();
    descriptor: ()V
    flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=4, args_size=1
        start local 0 // jdk.jshell.execution.JdiEventHandler this
         0: .line 125
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.vm:Lcom/sun/jdi/VirtualMachine;
            invokeinterface com.sun.jdi.VirtualMachine.eventQueue:()Lcom/sun/jdi/event/EventQueue;
            astore 1 /* queue */
        start local 1 // com.sun.jdi.event.EventQueue queue
         1: .line 126
            goto 10
         2: .line 128
      StackMap locals: com.sun.jdi.event.EventQueue
      StackMap stack:
            aload 1 /* queue */
            invokeinterface com.sun.jdi.event.EventQueue.remove:()Lcom/sun/jdi/event/EventSet;
            astore 2 /* eventSet */
        start local 2 // com.sun.jdi.event.EventSet eventSet
         3: .line 129
            aload 2 /* eventSet */
            invokeinterface com.sun.jdi.event.EventSet.eventIterator:()Lcom/sun/jdi/event/EventIterator;
            astore 3 /* iter */
        start local 3 // com.sun.jdi.event.EventIterator iter
         4: .line 130
            goto 6
         5: .line 131
      StackMap locals: com.sun.jdi.event.EventSet com.sun.jdi.event.EventIterator
      StackMap stack:
            aload 0 /* this */
            aload 3 /* iter */
            invokeinterface com.sun.jdi.event.EventIterator.next:()Ljava/lang/Object;
            checkcast com.sun.jdi.event.Event
            invokevirtual jdk.jshell.execution.JdiEventHandler.handleExitEvent:(Lcom/sun/jdi/event/Event;)V
         6: .line 130
      StackMap locals:
      StackMap stack:
            aload 3 /* iter */
            invokeinterface com.sun.jdi.event.EventIterator.hasNext:()Z
            ifne 5
        end local 3 // com.sun.jdi.event.EventIterator iter
        end local 2 // com.sun.jdi.event.EventSet eventSet
         7: .line 133
            goto 10
      StackMap locals: jdk.jshell.execution.JdiEventHandler com.sun.jdi.event.EventQueue
      StackMap stack: java.lang.InterruptedException
         8: pop
            goto 10
         9: .line 135
      StackMap locals:
      StackMap stack: java.lang.InternalError
            pop
        10: .line 126
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jshell.execution.JdiEventHandler.connected:Z
            ifne 2
        11: .line 139
            return
        end local 1 // com.sun.jdi.event.EventQueue queue
        end local 0 // jdk.jshell.execution.JdiEventHandler this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   12     0      this  Ljdk/jshell/execution/JdiEventHandler;
            1   12     1     queue  Lcom/sun/jdi/event/EventQueue;
            3    7     2  eventSet  Lcom/sun/jdi/event/EventSet;
            4    7     3      iter  Lcom/sun/jdi/event/EventIterator;
      Exception table:
        from    to  target  type
           2     7       8  Class java.lang.InterruptedException
           2     7       9  Class java.lang.InternalError
}
SourceFile: "JdiEventHandler.java"