public abstract class sun.tools.attach.HotSpotVirtualMachine extends com.sun.tools.attach.VirtualMachine
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.tools.attach.HotSpotVirtualMachine
super_class: com.sun.tools.attach.VirtualMachine
{
private static final long CURRENT_PID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean ALLOW_ATTACH_SELF;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int JNI_ENOMEM;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -4
private static final int ATTACH_ERROR_BADJAR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private static final int ATTACH_ERROR_NOTONCP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 101
private static final int ATTACH_ERROR_STARTFAIL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 102
private static final java.lang.String MANAGEMENT_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management."
private static long defaultAttachTimeout;
descriptor: J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private volatile long attachTimeout;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: invokedynamic run()Ljava/security/PrivilegedAction;
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;
java/lang/ProcessHandle.current()Ljava/lang/ProcessHandle; (6 itf)
()Ljava/lang/ProcessHandle;
astore 0
start local 0 1: aload 0
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.ProcessHandle
invokeinterface java.lang.ProcessHandle.pid:()J
putstatic sun.tools.attach.HotSpotVirtualMachine.CURRENT_PID:J
2: ldc "jdk.attach.allowAttachSelf"
invokestatic jdk.internal.misc.VM.getSavedProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 3: ldc ""
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
aload 1
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
ifne 4
iconst_0
goto 5
StackMap locals: java.security.PrivilegedAction java.lang.String
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: putstatic sun.tools.attach.HotSpotVirtualMachine.ALLOW_ATTACH_SELF:Z
end local 1 end local 0 6: ldc 10000
putstatic sun.tools.attach.HotSpotVirtualMachine.defaultAttachTimeout:J
return
LocalVariableTable:
Start End Slot Name Signature
1 6 0 pa Ljava/security/PrivilegedAction<Ljava/lang/ProcessHandle;>;
3 6 1 s Ljava/lang/String;
void <init>(com.sun.tools.attach.spi.AttachProvider, java.lang.String);
descriptor: (Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial com.sun.tools.attach.VirtualMachine.<init>:(Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;)V
1: aload 2
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 3
start local 3 2: goto 5
end local 3 StackMap locals: sun.tools.attach.HotSpotVirtualMachine com.sun.tools.attach.spi.AttachProvider java.lang.String
StackMap stack: java.lang.NumberFormatException
3: pop
4: new com.sun.tools.attach.AttachNotSupportedException
dup
ldc "Invalid process identifier"
invokespecial com.sun.tools.attach.AttachNotSupportedException.<init>:(Ljava/lang/String;)V
athrow
start local 3 5: StackMap locals: int
StackMap stack:
getstatic sun.tools.attach.HotSpotVirtualMachine.ALLOW_ATTACH_SELF:Z
ifne 7
iload 3
ifeq 6
iload 3
i2l
getstatic sun.tools.attach.HotSpotVirtualMachine.CURRENT_PID:J
lcmp
ifne 7
6: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Can not attach to current VM"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 8 1 provider Lcom/sun/tools/attach/spi/AttachProvider;
0 8 2 id Ljava/lang/String;
2 3 3 pid I
5 8 3 pid I
Exception table:
from to target type
1 2 3 Class java.lang.NumberFormatException
Exceptions:
throws com.sun.tools.attach.AttachNotSupportedException, java.io.IOException
MethodParameters:
Name Flags
provider
id
private void loadAgentLibrary(java.lang.String, boolean, java.lang.String);
descriptor: (Ljava/lang/String;ZLjava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "return code: "
astore 4
start local 4 1: aload 0
ldc "load"
iconst_3
anewarray java.lang.Object
dup
iconst_0
2: aload 1
aastore
dup
iconst_1
3: iload 2
ifeq 4
ldc "true"
goto 5
StackMap locals: sun.tools.attach.HotSpotVirtualMachine java.lang.String int java.lang.String java.lang.String
StackMap stack: sun.tools.attach.HotSpotVirtualMachine java.lang.String java.lang.Object[] java.lang.Object[] int
4: ldc "false"
StackMap locals: sun.tools.attach.HotSpotVirtualMachine java.lang.String int java.lang.String java.lang.String
StackMap stack: sun.tools.attach.HotSpotVirtualMachine java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
5: aastore
dup
iconst_2
6: aload 3
aastore
7: invokevirtual sun.tools.attach.HotSpotVirtualMachine.execute:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
astore 5
start local 5 8: aconst_null
astore 6
aconst_null
astore 7
9: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 5
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 8
start local 8 10: aload 8
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 9
start local 9 11: aload 9
ifnonnull 13
12: new com.sun.tools.attach.AgentLoadException
dup
ldc "Target VM did not respond"
invokespecial com.sun.tools.attach.AgentLoadException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: sun.tools.attach.HotSpotVirtualMachine java.lang.String int java.lang.String java.lang.String java.io.InputStream java.lang.Throwable java.lang.Throwable java.io.BufferedReader java.lang.String
StackMap stack:
aload 9
aload 4
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
14: aload 9
aload 4
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 10
start local 10 15: iload 10
ifeq 18
16: new com.sun.tools.attach.AgentInitializationException
dup
ldc "Agent_OnAttach failed"
iload 10
invokespecial com.sun.tools.attach.AgentInitializationException.<init>:(Ljava/lang/String;I)V
athrow
end local 10 17: StackMap locals:
StackMap stack:
new com.sun.tools.attach.AgentLoadException
dup
aload 9
invokespecial com.sun.tools.attach.AgentLoadException.<init>:(Ljava/lang/String;)V
athrow
end local 9 18: StackMap locals:
StackMap stack:
aload 8
ifnull 24
aload 8
invokevirtual java.io.BufferedReader.close:()V
goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 6
aload 8
ifnull 20
aload 8
invokevirtual java.io.BufferedReader.close:()V
end local 8 StackMap locals:
StackMap stack:
20: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 7
aload 6
ifnonnull 22
aload 7
astore 6
goto 23
StackMap locals:
StackMap stack:
22: aload 6
aload 7
if_acmpeq 23
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 6
athrow
24: StackMap locals:
StackMap stack:
return
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 25 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 25 1 agentLibrary Ljava/lang/String;
0 25 2 isAbsolute Z
0 25 3 options Ljava/lang/String;
1 25 4 msgPrefix Ljava/lang/String;
8 25 5 in Ljava/io/InputStream;
10 20 8 reader Ljava/io/BufferedReader;
11 18 9 result Ljava/lang/String;
15 17 10 retCode I
Exception table:
from to target type
10 18 19 any
9 21 21 any
Exceptions:
throws com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException, java.io.IOException
MethodParameters:
Name Flags
agentLibrary
isAbsolute
options
public void loadAgentLibrary(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_0
aload 2
invokevirtual sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary:(Ljava/lang/String;ZLjava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 2 1 agentLibrary Ljava/lang/String;
0 2 2 options Ljava/lang/String;
Exceptions:
throws com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException, java.io.IOException
MethodParameters:
Name Flags
agentLibrary
options
public void loadAgentPath(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_1
aload 2
invokevirtual sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary:(Ljava/lang/String;ZLjava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 2 1 agentLibrary Ljava/lang/String;
0 2 2 options Ljava/lang/String;
Exceptions:
throws com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException, java.io.IOException
MethodParameters:
Name Flags
agentLibrary
options
public void loadAgent(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
astore 3
start local 3 1: aload 2
ifnull 3
2: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc "instrument"
aload 3
invokevirtual sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary:(Ljava/lang/String;Ljava/lang/String;)V
4: goto 21
StackMap locals:
StackMap stack: com.sun.tools.attach.AgentInitializationException
5: astore 4
start local 4 6: aload 4
invokevirtual com.sun.tools.attach.AgentInitializationException.returnValue:()I
istore 5
start local 5 7: iload 5
lookupswitch { // 4
-4: 8
100: 9
101: 12
102: 15
default: 18
}
8: StackMap locals: com.sun.tools.attach.AgentInitializationException int
StackMap stack:
new com.sun.tools.attach.AgentLoadException
dup
ldc "Insuffient memory"
invokespecial com.sun.tools.attach.AgentLoadException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
new com.sun.tools.attach.AgentLoadException
dup
10: ldc "Agent JAR not found or no Agent-Class attribute"
11: invokespecial com.sun.tools.attach.AgentLoadException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
new com.sun.tools.attach.AgentLoadException
dup
13: ldc "Unable to add JAR file to system class path"
14: invokespecial com.sun.tools.attach.AgentLoadException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
new com.sun.tools.attach.AgentInitializationException
dup
16: ldc "Agent JAR loaded but agent failed to initialize"
17: invokespecial com.sun.tools.attach.AgentInitializationException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
new com.sun.tools.attach.AgentLoadException
dup
new java.lang.StringBuilder
dup
ldc "Failed to load agent - unknown reason: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
19: iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokespecial com.sun.tools.attach.AgentLoadException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 21: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 22 1 agent Ljava/lang/String;
0 22 2 options Ljava/lang/String;
1 22 3 args Ljava/lang/String;
6 21 4 x Lcom/sun/tools/attach/AgentInitializationException;
7 21 5 rc I
Exception table:
from to target type
3 4 5 Class com.sun.tools.attach.AgentInitializationException
Exceptions:
throws com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException, java.io.IOException
MethodParameters:
Name Flags
agent
options
public java.util.Properties getSystemProperties();
descriptor: ()Ljava/util/Properties;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 2
start local 2 2: aload 0
ldc "properties"
iconst_0
anewarray java.lang.Object
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
astore 1
3: aload 2
aload 1
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
4: goto 8
StackMap locals: sun.tools.attach.HotSpotVirtualMachine java.io.InputStream java.util.Properties
StackMap stack: java.lang.Throwable
5: astore 3
6: aload 1
ifnull 7
aload 1
invokevirtual java.io.InputStream.close:()V
7: StackMap locals: java.lang.Throwable
StackMap stack:
aload 3
athrow
8: StackMap locals:
StackMap stack:
aload 1
ifnull 9
aload 1
invokevirtual java.io.InputStream.close:()V
9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/tools/attach/HotSpotVirtualMachine;
1 10 1 in Ljava/io/InputStream;
2 10 2 props Ljava/util/Properties;
Exception table:
from to target type
2 5 5 any
Exceptions:
throws java.io.IOException
public java.util.Properties getAgentProperties();
descriptor: ()Ljava/util/Properties;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 2
start local 2 2: aload 0
ldc "agentProperties"
iconst_0
anewarray java.lang.Object
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
astore 1
3: aload 2
aload 1
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
4: goto 8
StackMap locals: sun.tools.attach.HotSpotVirtualMachine java.io.InputStream java.util.Properties
StackMap stack: java.lang.Throwable
5: astore 3
6: aload 1
ifnull 7
aload 1
invokevirtual java.io.InputStream.close:()V
7: StackMap locals: java.lang.Throwable
StackMap stack:
aload 3
athrow
8: StackMap locals:
StackMap stack:
aload 1
ifnull 9
aload 1
invokevirtual java.io.InputStream.close:()V
9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/tools/attach/HotSpotVirtualMachine;
1 10 1 in Ljava/io/InputStream;
2 10 2 props Ljava/util/Properties;
Exception table:
from to target type
2 5 5 any
Exceptions:
throws java.io.IOException
private static boolean checkedKeyName(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
instanceof java.lang.String
ifne 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid option (not a String): "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
checkcast java.lang.String
ldc "com.sun.management."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 4
3: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid option: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
private static java.lang.String stripKeyName(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
checkcast java.lang.String
ldc "com.sun.management."
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
public void startManagementAgent(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "agentProperties cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.Properties.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
3: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
sun/tools/attach/HotSpotVirtualMachine.lambda$1(Ljava/util/Map$Entry;)Z (6)
(Ljava/util/Map$Entry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
4: aload 0
invokedynamic apply(Lsun/tools/attach/HotSpotVirtualMachine;)Ljava/util/function/Function;
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;
sun/tools/attach/HotSpotVirtualMachine.lambda$2(Ljava/util/Map$Entry;)Ljava/lang/String; (7)
(Ljava/util/Map$Entry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: ldc " "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
6: astore 2
start local 2 7: aload 0
new java.lang.StringBuilder
dup
ldc "ManagementAgent.start "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeJCmd:(Ljava/lang/String;)Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 9 1 agentProperties Ljava/util/Properties;
7 9 2 args Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
agentProperties
private java.lang.String escape(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc " "
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 3
2: new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 4 1 arg Ljava/lang/Object;
1 4 2 value Ljava/lang/String;
MethodParameters:
Name Flags
arg
public java.lang.String startLocalManagementAgent();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "ManagementAgent.start_local"
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeJCmd:(Ljava/lang/String;)Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
1: ldc "com.sun.management.jmxremote.localConnectorAddress"
astore 1
start local 1 2: aload 0
invokevirtual sun.tools.attach.HotSpotVirtualMachine.getAgentProperties:()Ljava/util/Properties;
aload 1
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/tools/attach/HotSpotVirtualMachine;
2 3 1 prop Ljava/lang/String;
Exceptions:
throws java.io.IOException
public void localDataDump();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "datadump"
iconst_0
anewarray java.lang.Object
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/attach/HotSpotVirtualMachine;
Exceptions:
throws java.io.IOException
public java.io.InputStream remoteDataDump(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)Ljava/io/InputStream;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "threaddump"
aload 1
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 1 1 args [Ljava/lang/Object;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
args
public java.io.InputStream dumpHeap(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)Ljava/io/InputStream;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "dumpheap"
aload 1
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 1 1 args [Ljava/lang/Object;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
args
public java.io.InputStream heapHisto(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)Ljava/io/InputStream;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "inspectheap"
aload 1
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 1 1 args [Ljava/lang/Object;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
args
public java.io.InputStream setFlag(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "setflag"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 1 1 name Ljava/lang/String;
0 1 2 value Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
value
public java.io.InputStream printFlag(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "printflag"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 1 1 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
public java.io.InputStream executeJCmd(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "jcmd"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual sun.tools.attach.HotSpotVirtualMachine.executeCommand:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 1 1 command Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
command
abstract java.io.InputStream execute(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
flags: (0x0480) ACC_VARARGS, ACC_ABSTRACT
Exceptions:
throws com.sun.tools.attach.AgentLoadException, java.io.IOException
MethodParameters:
Name Flags
cmd
args
public java.io.InputStream executeCommand(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual sun.tools.attach.HotSpotVirtualMachine.execute:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
1: areturn
2: StackMap locals:
StackMap stack: com.sun.tools.attach.AgentLoadException
astore 3
start local 3 3: new java.lang.InternalError
dup
ldc "Should not get here"
aload 3
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 4 1 cmd Ljava/lang/String;
0 4 2 args [Ljava/lang/Object;
3 4 3 x Lcom/sun/tools/attach/AgentLoadException;
Exception table:
from to target type
0 1 2 Class com.sun.tools.attach.AgentLoadException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cmd
args
int readInt(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)I
flags: (0x0000)
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: iconst_1
newarray 8
astore 4
start local 4 2: StackMap locals: sun.tools.attach.HotSpotVirtualMachine java.io.InputStream java.lang.StringBuilder top byte[]
StackMap stack:
aload 1
aload 4
iconst_0
iconst_1
invokevirtual java.io.InputStream.read:([BII)I
istore 3
start local 3 3: iload 3
ifle 8
4: aload 4
iconst_0
baload
i2c
istore 5
start local 5 5: iload 5
bipush 10
if_icmpne 7
6: goto 10
7: StackMap locals: sun.tools.attach.HotSpotVirtualMachine java.io.InputStream java.lang.StringBuilder int byte[] int
StackMap stack:
aload 2
iload 5
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 5 8: StackMap locals:
StackMap stack:
iload 3
9: ifgt 2
10: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.length:()I
ifne 12
11: new java.io.IOException
dup
ldc "Premature EOF"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 5
start local 5 13: goto 16
end local 5 StackMap locals:
StackMap stack: java.lang.NumberFormatException
14: pop
15: new java.io.IOException
dup
ldc "Non-numeric value found - int expected"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
start local 5 16: StackMap locals: int
StackMap stack:
iload 5
ireturn
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 17 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 17 1 in Ljava/io/InputStream;
1 17 2 sb Ljava/lang/StringBuilder;
3 17 3 n I
2 17 4 buf [B
5 8 5 c C
13 14 5 value I
16 17 5 value I
Exception table:
from to target type
12 13 14 Class java.lang.NumberFormatException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
java.lang.String readErrorMessage(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 1: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 1
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
start local 4 2: goto 4
start local 2 3: StackMap locals: java.lang.String java.lang.StringBuilder java.io.BufferedReader
StackMap stack:
aload 3
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 2 4: StackMap locals: sun.tools.attach.HotSpotVirtualMachine java.io.InputStream top java.lang.StringBuilder java.io.BufferedReader
StackMap stack:
aload 4
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 2
start local 2 5: ifnonnull 3
6: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 7 1 in Ljava/io/InputStream;
3 4 2 s Ljava/lang/String;
5 7 2 s Ljava/lang/String;
1 7 3 message Ljava/lang/StringBuilder;
2 7 4 br Ljava/io/BufferedReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
long attachTimeout();
descriptor: ()J
flags: (0x0000)
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.tools.attach.HotSpotVirtualMachine.attachTimeout:J
lconst_0
lcmp
ifne 15
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield sun.tools.attach.HotSpotVirtualMachine.attachTimeout:J
lconst_0
lcmp
ifne 11
3: ldc "sun.tools.attach.attachTimeout"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
4: astore 2
start local 2 5: aload 0
aload 2
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
putfield sun.tools.attach.HotSpotVirtualMachine.attachTimeout:J
end local 2 6: goto 9
StackMap locals: sun.tools.attach.HotSpotVirtualMachine sun.tools.attach.HotSpotVirtualMachine
StackMap stack: java.lang.SecurityException
7: pop
goto 9
8: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.attach.HotSpotVirtualMachine.attachTimeout:J
lconst_0
lcmp
ifgt 11
10: aload 0
getstatic sun.tools.attach.HotSpotVirtualMachine.defaultAttachTimeout:J
putfield sun.tools.attach.HotSpotVirtualMachine.attachTimeout:J
11: StackMap locals:
StackMap stack:
aload 1
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 1
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.attach.HotSpotVirtualMachine.attachTimeout:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/tools/attach/HotSpotVirtualMachine;
5 6 2 s Ljava/lang/String;
Exception table:
from to target type
3 6 7 Class java.lang.SecurityException
3 6 8 Class java.lang.NumberFormatException
2 12 13 any
13 14 13 any
private static boolean lambda$1(java.util.Map$Entry);
descriptor: (Ljava/util/Map$Entry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokestatic sun.tools.attach.HotSpotVirtualMachine.checkedKeyName:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 entry Ljava/util/Map$Entry<Ljava/lang/Object;Ljava/lang/Object;>;
private java.lang.String lambda$2(java.util.Map$Entry);
descriptor: (Ljava/util/Map$Entry;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokestatic sun.tools.attach.HotSpotVirtualMachine.stripKeyName:(Ljava/lang/Object;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual sun.tools.attach.HotSpotVirtualMachine.escape:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/attach/HotSpotVirtualMachine;
0 1 1 entry Ljava/util/Map$Entry<Ljava/lang/Object;Ljava/lang/Object;>;
}
SourceFile: "HotSpotVirtualMachine.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map