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 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield jdk.jshell.execution.JdiEventHandler.connected:Z
2: aload 0
iconst_0
putfield jdk.jshell.execution.JdiEventHandler.completed:Z
3: aload 0
aload 1
putfield jdk.jshell.execution.JdiEventHandler.vm:Lcom/sun/jdi/VirtualMachine;
4: aload 0
aload 2
putfield jdk.jshell.execution.JdiEventHandler.reportVMExit:Ljava/util/function/Consumer;
5: aload 0
new java.lang.Thread
dup
aload 0
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: aload 0
getfield jdk.jshell.execution.JdiEventHandler.thread:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
7: return
end local 2 end local 1 end local 0 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 0: aload 0
getfield jdk.jshell.execution.JdiEventHandler.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
1: return
end local 0 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 0: aload 0
iconst_0
putfield jdk.jshell.execution.JdiEventHandler.connected:Z
1: aload 0
getfield jdk.jshell.execution.JdiEventHandler.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
2: goto 6
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.wait:()V
4: goto 6
StackMap locals:
StackMap stack: java.lang.InterruptedException
5: pop
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.execution.JdiEventHandler.completed:Z
ifeq 3
7: return
end local 0 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 0: aload 0
getfield jdk.jshell.execution.JdiEventHandler.vm:Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.eventQueue:()Lcom/sun/jdi/event/EventQueue;
astore 1
start local 1 1: goto 15
2: StackMap locals: com.sun.jdi.event.EventQueue
StackMap stack:
aload 1
invokeinterface com.sun.jdi.event.EventQueue.remove:()Lcom/sun/jdi/event/EventSet;
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: aload 2
invokeinterface com.sun.jdi.event.EventSet.eventIterator:()Lcom/sun/jdi/event/EventIterator;
astore 4
start local 4 5: goto 7
6: StackMap locals: com.sun.jdi.event.EventSet int com.sun.jdi.event.EventIterator
StackMap stack:
iload 3
aload 0
aload 4
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
7: StackMap locals:
StackMap stack:
aload 4
invokeinterface com.sun.jdi.event.EventIterator.hasNext:()Z
ifne 6
8: iload 3
ifeq 15
9: aload 2
invokeinterface com.sun.jdi.event.EventSet.resume:()V
end local 4 end local 3 end local 2 10: goto 15
StackMap locals: jdk.jshell.execution.JdiEventHandler com.sun.jdi.event.EventQueue
StackMap stack: java.lang.InterruptedException
11: pop
goto 15
12: StackMap locals:
StackMap stack: com.sun.jdi.VMDisconnectedException
pop
13: aload 0
invokevirtual jdk.jshell.execution.JdiEventHandler.handleDisconnectedException:()V
14: goto 16
15: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.execution.JdiEventHandler.connected:Z
ifne 2
16: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
17: aload 0
iconst_1
putfield jdk.jshell.execution.JdiEventHandler.completed:Z
18: aload 0
invokevirtual java.lang.Object.notifyAll:()V
19: 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: StackMap locals:
StackMap stack:
return
end local 1 end local 0 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 start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.execution.JdiEventHandler.handleExitEvent:(Lcom/sun/jdi/event/Event;)V
1: iconst_1
ireturn
end local 1 end local 0 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 start local 1 0: aload 1
instanceof com.sun.jdi.event.VMDeathEvent
ifeq 3
1: aload 0
getfield jdk.jshell.execution.JdiEventHandler.reportVMExit:Ljava/util/function/Consumer;
ldc "VM Died"
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
2: goto 6
StackMap locals:
StackMap stack:
3: aload 1
instanceof com.sun.jdi.event.VMDisconnectEvent
ifeq 6
4: aload 0
iconst_0
putfield jdk.jshell.execution.JdiEventHandler.connected:Z
5: aload 0
getfield jdk.jshell.execution.JdiEventHandler.reportVMExit:Ljava/util/function/Consumer;
ldc "VM Disconnected"
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 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 0: aload 0
getfield jdk.jshell.execution.JdiEventHandler.vm:Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.eventQueue:()Lcom/sun/jdi/event/EventQueue;
astore 1
start local 1 1: goto 10
2: StackMap locals: com.sun.jdi.event.EventQueue
StackMap stack:
aload 1
invokeinterface com.sun.jdi.event.EventQueue.remove:()Lcom/sun/jdi/event/EventSet;
astore 2
start local 2 3: aload 2
invokeinterface com.sun.jdi.event.EventSet.eventIterator:()Lcom/sun/jdi/event/EventIterator;
astore 3
start local 3 4: goto 6
5: StackMap locals: com.sun.jdi.event.EventSet com.sun.jdi.event.EventIterator
StackMap stack:
aload 0
aload 3
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: StackMap locals:
StackMap stack:
aload 3
invokeinterface com.sun.jdi.event.EventIterator.hasNext:()Z
ifne 5
end local 3 end local 2 7: goto 10
StackMap locals: jdk.jshell.execution.JdiEventHandler com.sun.jdi.event.EventQueue
StackMap stack: java.lang.InterruptedException
8: pop
goto 10
9: StackMap locals:
StackMap stack: java.lang.InternalError
pop
10: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.execution.JdiEventHandler.connected:Z
ifne 2
11: return
end local 1 end local 0 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"