public class jdk.jshell.execution.JdiDefaultExecutionControl extends jdk.jshell.execution.JdiExecutionControl
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jshell.execution.JdiDefaultExecutionControl
super_class: jdk.jshell.execution.JdiExecutionControl
{
private com.sun.jdi.VirtualMachine vm;
descriptor: Lcom/sun/jdi/VirtualMachine;
flags: (0x0002) ACC_PRIVATE
private java.lang.Process process;
descriptor: Ljava/lang/Process;
flags: (0x0002) ACC_PRIVATE
private final java.lang.String remoteAgent;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object STOP_LOCK;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean userCodeRunning;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static jdk.jshell.spi.ExecutionControl create(jdk.jshell.spi.ExecutionEnv, java.lang.String, boolean, java.lang.String, int);
descriptor: (Ljdk/jshell/spi/ExecutionEnv;Ljava/lang/String;ZLjava/lang/String;I)Ljdk/jshell/spi/ExecutionControl;
flags: (0x0008) ACC_STATIC
Code:
stack=9, locals=17, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aconst_null
astore 5
aconst_null
astore 6
1: new java.net.ServerSocket
dup
iconst_0
iconst_1
invokestatic java.net.InetAddress.getLoopbackAddress:()Ljava/net/InetAddress;
invokespecial java.net.ServerSocket.<init>:(IILjava/net/InetAddress;)V
astore 7
start local 7 2: aload 7
iload 4
invokevirtual java.net.ServerSocket.setSoTimeout:(I)V
3: aload 7
invokevirtual java.net.ServerSocket.getLocalPort:()I
istore 8
start local 8 4: new jdk.jshell.execution.JdiInitiator
dup
iload 8
5: aload 0
invokeinterface jdk.jshell.spi.ExecutionEnv.extraRemoteVMOptions:()Ljava/util/List;
aload 1
iload 2
aload 3
6: iload 4
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
7: invokespecial jdk.jshell.execution.JdiInitiator.<init>:(ILjava/util/List;Ljava/lang/String;ZLjava/lang/String;ILjava/util/Map;)V
astore 9
start local 9 8: aload 9
invokevirtual jdk.jshell.execution.JdiInitiator.vm:()Lcom/sun/jdi/VirtualMachine;
astore 10
start local 10 9: aload 9
invokevirtual jdk.jshell.execution.JdiInitiator.process:()Ljava/lang/Process;
astore 11
start local 11 10: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 12
start local 12 11: aload 10
aload 12
invokedynamic accept(Ljava/util/List;)Ljava/util/function/Consumer;
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;)V
jdk/jshell/execution/JdiDefaultExecutionControl.lambda$0(Ljava/util/List;Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
invokestatic jdk.jshell.execution.Util.detectJdiExitEvent:(Lcom/sun/jdi/VirtualMachine;Ljava/util/function/Consumer;)V
12: aload 7
invokevirtual java.net.ServerSocket.accept:()Ljava/net/Socket;
astore 13
start local 13 13: aload 13
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
astore 14
start local 14 14: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 15
start local 15 15: aload 15
ldc "out"
aload 0
invokeinterface jdk.jshell.spi.ExecutionEnv.userOut:()Ljava/io/PrintStream;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: aload 15
ldc "err"
aload 0
invokeinterface jdk.jshell.spi.ExecutionEnv.userErr:()Ljava/io/PrintStream;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
17: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 16
start local 16 18: aload 16
ldc "in"
aload 0
invokeinterface jdk.jshell.spi.ExecutionEnv.userIn:()Ljava/io/InputStream;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: aload 13
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
aload 14
aload 15
aload 16
20: aload 0
aload 10
aload 11
aload 1
aload 12
invokedynamic apply(Ljdk/jshell/spi/ExecutionEnv;Lcom/sun/jdi/VirtualMachine;Ljava/lang/Process;Ljava/lang/String;Ljava/util/List;)Ljava/util/function/BiFunction;
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;Ljava/lang/Object;)Ljava/lang/Object;
jdk/jshell/execution/JdiDefaultExecutionControl.lambda$1(Ljdk/jshell/spi/ExecutionEnv;Lcom/sun/jdi/VirtualMachine;Ljava/lang/Process;Ljava/lang/String;Ljava/util/List;Ljava/io/ObjectInput;Ljava/io/ObjectOutput;)Ljdk/jshell/spi/ExecutionControl; (6)
(Ljava/io/ObjectInput;Ljava/io/ObjectOutput;)Ljdk/jshell/spi/ExecutionControl;
21: invokestatic jdk.jshell.execution.Util.remoteInputOutput:(Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/util/Map;Ljava/util/Map;Ljava/util/function/BiFunction;)Ljdk/jshell/spi/ExecutionControl;
22: aload 7
ifnull 23
aload 7
invokevirtual java.net.ServerSocket.close:()V
23: StackMap locals: jdk.jshell.spi.ExecutionEnv java.lang.String int java.lang.String int java.lang.Throwable java.lang.Throwable java.net.ServerSocket int jdk.jshell.execution.JdiInitiator com.sun.jdi.VirtualMachine java.lang.Process java.util.List java.net.Socket java.io.OutputStream java.util.Map java.util.Map
StackMap stack: jdk.jshell.spi.ExecutionControl
areturn
end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 StackMap locals: jdk.jshell.spi.ExecutionEnv java.lang.String int java.lang.String int java.lang.Throwable java.lang.Throwable java.net.ServerSocket
StackMap stack: java.lang.Throwable
24: astore 5
25: aload 7
ifnull 26
aload 7
invokevirtual java.net.ServerSocket.close:()V
end local 7 StackMap locals:
StackMap stack:
26: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
27: astore 6
aload 5
ifnonnull 28
aload 6
astore 5
goto 29
StackMap locals:
StackMap stack:
28: aload 5
aload 6
if_acmpeq 29
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
29: aload 5
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 env Ljdk/jshell/spi/ExecutionEnv;
0 30 1 remoteAgent Ljava/lang/String;
0 30 2 isLaunch Z
0 30 3 host Ljava/lang/String;
0 30 4 timeout I
2 26 7 listener Ljava/net/ServerSocket;
4 24 8 port I
8 24 9 jdii Ljdk/jshell/execution/JdiInitiator;
9 24 10 vm Lcom/sun/jdi/VirtualMachine;
10 24 11 process Ljava/lang/Process;
11 24 12 deathListeners Ljava/util/List<Ljava/util/function/Consumer<Ljava/lang/String;>;>;
13 24 13 socket Ljava/net/Socket;
14 24 14 out Ljava/io/OutputStream;
15 24 15 outputs Ljava/util/Map<Ljava/lang/String;Ljava/io/OutputStream;>;
18 24 16 input Ljava/util/Map<Ljava/lang/String;Ljava/io/InputStream;>;
Exception table:
from to target type
2 22 24 any
1 23 27 any
24 27 27 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
env
remoteAgent
isLaunch
host
timeout
private void <init>(jdk.jshell.spi.ExecutionEnv, java.io.ObjectOutput, java.io.ObjectInput, com.sun.jdi.VirtualMachine, java.lang.Process, java.lang.String, java.util.List<java.util.function.Consumer<java.lang.String>>);
descriptor: (Ljdk/jshell/spi/ExecutionEnv;Ljava/io/ObjectOutput;Ljava/io/ObjectInput;Lcom/sun/jdi/VirtualMachine;Ljava/lang/Process;Ljava/lang/String;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
aload 2
aload 3
invokespecial jdk.jshell.execution.JdiExecutionControl.<init>:(Ljava/io/ObjectOutput;Ljava/io/ObjectInput;)V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield jdk.jshell.execution.JdiDefaultExecutionControl.STOP_LOCK:Ljava/lang/Object;
2: aload 0
iconst_0
putfield jdk.jshell.execution.JdiDefaultExecutionControl.userCodeRunning:Z
3: aload 0
aload 4
putfield jdk.jshell.execution.JdiDefaultExecutionControl.vm:Lcom/sun/jdi/VirtualMachine;
4: aload 0
aload 5
putfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
5: aload 0
aload 6
putfield jdk.jshell.execution.JdiDefaultExecutionControl.remoteAgent:Ljava/lang/String;
6: aload 7
aload 1
invokedynamic accept(Ljdk/jshell/spi/ExecutionEnv;)Ljava/util/function/Consumer;
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;)V
jdk/jshell/execution/JdiDefaultExecutionControl.lambda$2(Ljdk/jshell/spi/ExecutionEnv;Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: aload 7
aload 0
invokedynamic accept(Ljdk/jshell/execution/JdiDefaultExecutionControl;)Ljava/util/function/Consumer;
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;)V
jdk/jshell/execution/JdiDefaultExecutionControl.lambda$3(Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jshell/execution/JdiDefaultExecutionControl;
0 9 1 env Ljdk/jshell/spi/ExecutionEnv;
0 9 2 cmdout Ljava/io/ObjectOutput;
0 9 3 cmdin Ljava/io/ObjectInput;
0 9 4 vm Lcom/sun/jdi/VirtualMachine;
0 9 5 process Ljava/lang/Process;
0 9 6 remoteAgent Ljava/lang/String;
0 9 7 deathListeners Ljava/util/List<Ljava/util/function/Consumer<Ljava/lang/String;>;>;
Signature: (Ljdk/jshell/spi/ExecutionEnv;Ljava/io/ObjectOutput;Ljava/io/ObjectInput;Lcom/sun/jdi/VirtualMachine;Ljava/lang/Process;Ljava/lang/String;Ljava/util/List<Ljava/util/function/Consumer<Ljava/lang/String;>;>;)V
MethodParameters:
Name Flags
env
cmdout
cmdin
vm
process
remoteAgent
deathListeners
public java.lang.String invoke(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.STOP_LOCK:Ljava/lang/Object;
dup
astore 4
monitorenter
1: aload 0
iconst_1
putfield jdk.jshell.execution.JdiDefaultExecutionControl.userCodeRunning:Z
2: aload 4
monitorexit
3: goto 6
StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.String java.lang.String top java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 4
monitorexit
5: athrow
6: StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.String java.lang.String
StackMap stack:
aload 0
aload 1
aload 2
invokespecial jdk.jshell.execution.JdiExecutionControl.invoke:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 7: goto 16
end local 3 StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 4
9: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.STOP_LOCK:Ljava/lang/Object;
dup
astore 5
monitorenter
10: aload 0
iconst_0
putfield jdk.jshell.execution.JdiDefaultExecutionControl.userCodeRunning:Z
11: aload 5
monitorexit
12: goto 15
StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.String java.lang.String top java.lang.Throwable java.lang.Object
StackMap stack: java.lang.Throwable
13: aload 5
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 4
athrow
start local 3 16: StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.STOP_LOCK:Ljava/lang/Object;
dup
astore 5
monitorenter
17: aload 0
iconst_0
putfield jdk.jshell.execution.JdiDefaultExecutionControl.userCodeRunning:Z
18: aload 5
monitorexit
19: goto 22
StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.String java.lang.String java.lang.String top java.lang.Object
StackMap stack: java.lang.Throwable
20: aload 5
monitorexit
21: athrow
22: StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljdk/jshell/execution/JdiDefaultExecutionControl;
0 23 1 classname Ljava/lang/String;
0 23 2 methodname Ljava/lang/String;
7 8 3 res Ljava/lang/String;
16 23 3 res Ljava/lang/String;
Exception table:
from to target type
1 3 4 any
4 5 4 any
6 8 8 any
10 12 13 any
13 14 13 any
17 19 20 any
20 21 20 any
Exceptions:
throws jdk.jshell.spi.ExecutionControl$RunException, jdk.jshell.spi.ExecutionControl$EngineTerminationException, jdk.jshell.spi.ExecutionControl$InternalException
MethodParameters:
Name Flags
classname
methodname
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=12, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.STOP_LOCK:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.userCodeRunning:Z
ifne 4
2: aload 1
monitorexit
3: return
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.vm:()Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.suspend:()V
5: aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.vm:()Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.allThreads:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 25
StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.Object top java.util.Iterator
StackMap stack:
6: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.jdi.ThreadReference
astore 2
start local 2 7: aload 2
invokeinterface com.sun.jdi.ThreadReference.frames:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 24
StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.Object com.sun.jdi.ThreadReference java.util.Iterator top java.util.Iterator
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.jdi.StackFrame
astore 4
start local 4 9: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.remoteAgent:Ljava/lang/String;
aload 4
invokeinterface com.sun.jdi.StackFrame.location:()Lcom/sun/jdi/Location;
invokeinterface com.sun.jdi.Location.declaringType:()Lcom/sun/jdi/ReferenceType;
invokeinterface com.sun.jdi.ReferenceType.name:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
10: ldc "invoke"
aload 4
invokeinterface com.sun.jdi.StackFrame.location:()Lcom/sun/jdi/Location;
invokeinterface com.sun.jdi.Location.method:()Lcom/sun/jdi/Method;
invokeinterface com.sun.jdi.Method.name:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
11: ldc "varValue"
aload 4
invokeinterface com.sun.jdi.StackFrame.location:()Lcom/sun/jdi/Location;
invokeinterface com.sun.jdi.Location.method:()Lcom/sun/jdi/Method;
invokeinterface com.sun.jdi.Method.name:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
12: StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.Object com.sun.jdi.ThreadReference java.util.Iterator com.sun.jdi.StackFrame java.util.Iterator
StackMap stack:
aload 4
invokeinterface com.sun.jdi.StackFrame.thisObject:()Lcom/sun/jdi/ObjectReference;
astore 6
start local 6 13: aload 6
invokeinterface com.sun.jdi.ObjectReference.referenceType:()Lcom/sun/jdi/ReferenceType;
ldc "inClientCode"
invokeinterface com.sun.jdi.ReferenceType.fieldByName:(Ljava/lang/String;)Lcom/sun/jdi/Field;
astore 7
start local 7 14: aload 6
invokeinterface com.sun.jdi.ObjectReference.referenceType:()Lcom/sun/jdi/ReferenceType;
ldc "expectingStop"
invokeinterface com.sun.jdi.ReferenceType.fieldByName:(Ljava/lang/String;)Lcom/sun/jdi/Field;
astore 8
start local 8 15: aload 6
invokeinterface com.sun.jdi.ObjectReference.referenceType:()Lcom/sun/jdi/ReferenceType;
ldc "stopException"
invokeinterface com.sun.jdi.ReferenceType.fieldByName:(Ljava/lang/String;)Lcom/sun/jdi/Field;
astore 9
start local 9 16: aload 6
aload 7
invokeinterface com.sun.jdi.ObjectReference.getValue:(Lcom/sun/jdi/Field;)Lcom/sun/jdi/Value;
checkcast com.sun.jdi.BooleanValue
invokeinterface com.sun.jdi.BooleanValue.value:()Z
ifeq 32
17: aload 6
aload 8
aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.vm:()Lcom/sun/jdi/VirtualMachine;
iconst_1
invokeinterface com.sun.jdi.VirtualMachine.mirrorOf:(Z)Lcom/sun/jdi/BooleanValue;
invokeinterface com.sun.jdi.ObjectReference.setValue:(Lcom/sun/jdi/Field;Lcom/sun/jdi/Value;)V
18: aload 6
aload 9
invokeinterface com.sun.jdi.ObjectReference.getValue:(Lcom/sun/jdi/Field;)Lcom/sun/jdi/Value;
checkcast com.sun.jdi.ObjectReference
astore 10
start local 10 19: aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.vm:()Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.resume:()V
20: ldc "Attempting to stop the client code...\n"
iconst_0
anewarray java.lang.Object
invokestatic jdk.jshell.execution.JdiDefaultExecutionControl.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
21: aload 2
aload 10
invokeinterface com.sun.jdi.ThreadReference.stop:(Lcom/sun/jdi/ObjectReference;)V
22: aload 6
aload 8
aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.vm:()Lcom/sun/jdi/VirtualMachine;
iconst_0
invokeinterface com.sun.jdi.VirtualMachine.mirrorOf:(Z)Lcom/sun/jdi/BooleanValue;
invokeinterface com.sun.jdi.ObjectReference.setValue:(Lcom/sun/jdi/Field;Lcom/sun/jdi/Value;)V
end local 10 23: goto 32
end local 9 end local 8 end local 7 end local 6 end local 4 24: StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.Object com.sun.jdi.ThreadReference java.util.Iterator top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
end local 2 25: StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.Object top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
26: goto 32
StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl java.lang.Object
StackMap stack: java.lang.Exception
27: astore 2
start local 2 28: new jdk.jshell.spi.ExecutionControl$InternalException
dup
new java.lang.StringBuilder
dup
ldc "Exception on remote stop: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial jdk.jshell.spi.ExecutionControl$InternalException.<init>:(Ljava/lang/String;)V
athrow
end local 2 29: StackMap locals:
StackMap stack: java.lang.Throwable
astore 11
30: aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.vm:()Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.resume:()V
31: aload 11
athrow
32: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.vm:()Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.resume:()V
33: aload 1
monitorexit
34: goto 37
StackMap locals:
StackMap stack: java.lang.Throwable
35: aload 1
monitorexit
36: athrow
37: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Ljdk/jshell/execution/JdiDefaultExecutionControl;
7 25 2 thread Lcom/sun/jdi/ThreadReference;
9 24 4 frame Lcom/sun/jdi/StackFrame;
13 24 6 thiz Lcom/sun/jdi/ObjectReference;
14 24 7 inClientCode Lcom/sun/jdi/Field;
15 24 8 expectingStop Lcom/sun/jdi/Field;
16 24 9 stopException Lcom/sun/jdi/Field;
19 23 10 stopInstance Lcom/sun/jdi/ObjectReference;
28 29 2 ex Ljava/lang/Exception;
Exception table:
from to target type
5 26 27 Class com.sun.jdi.ClassNotLoadedException
5 26 27 Class com.sun.jdi.IncompatibleThreadStateException
5 26 27 Class com.sun.jdi.InvalidTypeException
5 29 29 any
1 3 35 any
4 34 35 any
35 36 35 any
Exceptions:
throws jdk.jshell.spi.ExecutionControl$EngineTerminationException, jdk.jshell.spi.ExecutionControl$InternalException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.jshell.execution.JdiExecutionControl.close:()V
1: aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.disposeVM:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/execution/JdiDefaultExecutionControl;
private synchronized void disposeVM();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.vm:Lcom/sun/jdi/VirtualMachine;
ifnull 18
1: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.vm:Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.dispose:()V
2: aload 0
aconst_null
putfield jdk.jshell.execution.JdiDefaultExecutionControl.vm:Lcom/sun/jdi/VirtualMachine;
3: goto 18
StackMap locals:
StackMap stack: com.sun.jdi.VMDisconnectedException
4: pop
5: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
ifnull 21
6: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
invokevirtual java.lang.Process.destroy:()V
7: aload 0
aconst_null
putfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
goto 21
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 9: aload 1
ldc "disposeVM"
invokestatic jdk.jshell.execution.JdiDefaultExecutionControl.debug:(Ljava/lang/Throwable;Ljava/lang/String;)V
end local 1 10: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
ifnull 21
11: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
invokevirtual java.lang.Process.destroy:()V
12: aload 0
aconst_null
putfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
goto 21
13: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
14: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
ifnull 17
15: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
invokevirtual java.lang.Process.destroy:()V
16: aload 0
aconst_null
putfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
17: StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl top java.lang.Throwable
StackMap stack:
aload 2
athrow
18: StackMap locals: jdk.jshell.execution.JdiDefaultExecutionControl
StackMap stack:
aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
ifnull 21
19: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
invokevirtual java.lang.Process.destroy:()V
20: aload 0
aconst_null
putfield jdk.jshell.execution.JdiDefaultExecutionControl.process:Ljava/lang/Process;
21: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/jshell/execution/JdiDefaultExecutionControl;
9 10 1 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 3 4 Class com.sun.jdi.VMDisconnectedException
0 3 8 Class java.lang.Throwable
0 5 13 any
8 10 13 any
protected synchronized com.sun.jdi.VirtualMachine vm();
descriptor: ()Lcom/sun/jdi/VirtualMachine;
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.vm:Lcom/sun/jdi/VirtualMachine;
ifnonnull 2
1: new jdk.jshell.spi.ExecutionControl$EngineTerminationException
dup
ldc "VM closed"
invokespecial jdk.jshell.spi.ExecutionControl$EngineTerminationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.execution.JdiDefaultExecutionControl.vm:Lcom/sun/jdi/VirtualMachine;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/execution/JdiDefaultExecutionControl;
Exceptions:
throws jdk.jshell.spi.ExecutionControl$EngineTerminationException
private static void debug(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 format Ljava/lang/String;
0 1 1 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
private static void debug(java.lang.Throwable, java.lang.String);
descriptor: (Ljava/lang/Throwable;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ex Ljava/lang/Throwable;
0 1 1 where Ljava/lang/String;
MethodParameters:
Name Flags
ex
where
private static void lambda$0(java.util.List, java.lang.String);
descriptor: (Ljava/util/List;Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=2
start local 1 0: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: java.util.List java.lang.String top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.function.Consumer
astore 2
start local 2 2: aload 2
aload 1
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 s Ljava/lang/String;
2 3 2 h Ljava/util/function/Consumer<Ljava/lang/String;>;
private static jdk.jshell.spi.ExecutionControl lambda$1(jdk.jshell.spi.ExecutionEnv, com.sun.jdi.VirtualMachine, java.lang.Process, java.lang.String, java.util.List, java.io.ObjectInput, java.io.ObjectOutput);
descriptor: (Ljdk/jshell/spi/ExecutionEnv;Lcom/sun/jdi/VirtualMachine;Ljava/lang/Process;Ljava/lang/String;Ljava/util/List;Ljava/io/ObjectInput;Ljava/io/ObjectOutput;)Ljdk/jshell/spi/ExecutionControl;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=9, locals=7, args_size=7
start local 5 start local 6 0: new jdk.jshell.execution.JdiDefaultExecutionControl
dup
aload 0
1: aload 6
aload 5
aload 1
aload 2
aload 3
aload 4
2: invokespecial jdk.jshell.execution.JdiDefaultExecutionControl.<init>:(Ljdk/jshell/spi/ExecutionEnv;Ljava/io/ObjectOutput;Ljava/io/ObjectInput;Lcom/sun/jdi/VirtualMachine;Ljava/lang/Process;Ljava/lang/String;Ljava/util/List;)V
3: areturn
end local 6 end local 5 LocalVariableTable:
Start End Slot Name Signature
0 4 5 objIn Ljava/io/ObjectInput;
0 4 6 objOut Ljava/io/ObjectOutput;
private static void lambda$2(jdk.jshell.spi.ExecutionEnv, java.lang.String);
descriptor: (Ljdk/jshell/spi/ExecutionEnv;Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 1 0: aload 0
invokeinterface jdk.jshell.spi.ExecutionEnv.closeDown:()V
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Ljava/lang/String;
private void lambda$3(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.jshell.execution.JdiDefaultExecutionControl.disposeVM:()V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/execution/JdiDefaultExecutionControl;
0 1 1 s Ljava/lang/String;
}
SourceFile: "JdiDefaultExecutionControl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public EngineTerminationException = jdk.jshell.spi.ExecutionControl$EngineTerminationException of jdk.jshell.spi.ExecutionControl
public InternalException = jdk.jshell.spi.ExecutionControl$InternalException of jdk.jshell.spi.ExecutionControl
public abstract RunException = jdk.jshell.spi.ExecutionControl$RunException of jdk.jshell.spi.ExecutionControl