public abstract class sun.tools.attach.HotSpotAttachProvider extends com.sun.tools.attach.spi.AttachProvider
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.tools.attach.HotSpotAttachProvider
super_class: com.sun.tools.attach.spi.AttachProvider
{
private static final java.lang.String JVM_VERSION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "java.property.java.vm.version"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.sun.tools.attach.spi.AttachProvider.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/attach/HotSpotAttachProvider;
public void checkAttachPermission();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 5
2: aload 1
3: new com.sun.tools.attach.AttachPermission
dup
ldc "attachVirtualMachine"
invokespecial com.sun.tools.attach.AttachPermission.<init>:(Ljava/lang/String;)V
4: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/tools/attach/HotSpotAttachProvider;
1 6 1 sm Ljava/lang/SecurityManager;
public java.util.List<com.sun.tools.attach.VirtualMachineDescriptor> listVirtualMachines();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=12, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
1: astore 1
start local 1 2: new sun.jvmstat.monitor.HostIdentifier
dup
aconst_null
invokespecial sun.jvmstat.monitor.HostIdentifier.<init>:(Ljava/lang/String;)V
invokestatic sun.jvmstat.monitor.MonitoredHost.getMonitoredHost:(Lsun/jvmstat/monitor/HostIdentifier;)Lsun/jvmstat/monitor/MonitoredHost;
astore 2
start local 2 3: aload 2
invokevirtual sun.jvmstat.monitor.MonitoredHost.activeVms:()Ljava/util/Set;
astore 3
start local 3 4: goto 13
end local 3 end local 2 StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList
StackMap stack: java.lang.Throwable
5: astore 4
start local 4 6: aload 4
instanceof java.lang.ExceptionInInitializerError
ifeq 8
7: aload 4
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 4
8: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList top top java.lang.Throwable
StackMap stack:
aload 4
instanceof java.lang.ThreadDeath
ifeq 10
9: aload 4
checkcast java.lang.ThreadDeath
athrow
10: StackMap locals:
StackMap stack:
aload 4
instanceof java.lang.SecurityException
ifeq 12
11: aload 1
areturn
12: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
end local 4 start local 2 start local 3 13: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set
StackMap stack:
aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 39
StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set top java.util.Iterator
StackMap stack:
14: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 15: aload 4
instanceof java.lang.Integer
ifeq 39
16: aload 4
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 6
start local 6 17: aload 6
astore 7
start local 7 18: iconst_0
istore 8
start local 8 19: aconst_null
astore 9
start local 9 20: aload 2
new sun.jvmstat.monitor.VmIdentifier
dup
aload 6
invokespecial sun.jvmstat.monitor.VmIdentifier.<init>:(Ljava/lang/String;)V
invokevirtual sun.jvmstat.monitor.MonitoredHost.getMonitoredVm:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredVm;
astore 9
21: aload 9
invokestatic sun.jvmstat.monitor.MonitoredVmUtil.isAttachable:(Lsun/jvmstat/monitor/MonitoredVm;)Z
istore 8
22: aload 9
invokestatic sun.jvmstat.monitor.MonitoredVmUtil.commandLine:(Lsun/jvmstat/monitor/MonitoredVm;)Ljava/lang/String;
astore 7
23: goto 25
StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set java.lang.Object java.util.Iterator java.lang.String java.lang.String int sun.jvmstat.monitor.MonitoredVm
StackMap stack: java.lang.Exception
24: pop
25: StackMap locals:
StackMap stack:
iload 8
ifeq 37
26: aload 1
new sun.tools.attach.HotSpotAttachProvider$HotSpotVirtualMachineDescriptor
dup
aload 0
aload 6
aload 7
invokespecial sun.tools.attach.HotSpotAttachProvider$HotSpotVirtualMachineDescriptor.<init>:(Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;Ljava/lang/String;)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
27: goto 37
StackMap locals:
StackMap stack: java.lang.Throwable
28: astore 10
start local 10 29: aload 10
instanceof java.lang.ThreadDeath
ifeq 31
30: aload 10
checkcast java.lang.ThreadDeath
athrow
end local 10 31: StackMap locals:
StackMap stack:
aload 9
ifnull 39
32: aload 9
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
goto 39
33: StackMap locals:
StackMap stack: java.lang.Throwable
astore 11
34: aload 9
ifnull 36
35: aload 9
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
36: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set java.lang.Object java.util.Iterator java.lang.String java.lang.String int sun.jvmstat.monitor.MonitoredVm top java.lang.Throwable
StackMap stack:
aload 11
athrow
37: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set java.lang.Object java.util.Iterator java.lang.String java.lang.String int sun.jvmstat.monitor.MonitoredVm
StackMap stack:
aload 9
ifnull 39
38: aload 9
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
end local 9 end local 8 end local 7 end local 6 end local 4 39: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
40: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lsun/tools/attach/HotSpotAttachProvider;
2 41 1 result Ljava/util/ArrayList<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
3 5 2 host Lsun/jvmstat/monitor/MonitoredHost;
13 41 2 host Lsun/jvmstat/monitor/MonitoredHost;
4 5 3 vms Ljava/util/Set;
13 41 3 vms Ljava/util/Set;
6 13 4 t Ljava/lang/Throwable;
15 39 4 vmid Ljava/lang/Object;
17 39 6 pid Ljava/lang/String;
18 39 7 name Ljava/lang/String;
19 39 8 isAttachable Z
20 39 9 mvm Lsun/jvmstat/monitor/MonitoredVm;
29 31 10 t Ljava/lang/Throwable;
Exception table:
from to target type
2 4 5 Class java.lang.Throwable
21 23 24 Class java.lang.Exception
20 27 28 Class java.lang.Throwable
20 31 33 any
Signature: ()Ljava/util/List<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
void testAttachable(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: new sun.jvmstat.monitor.VmIdentifier
dup
aload 1
invokespecial sun.jvmstat.monitor.VmIdentifier.<init>:(Ljava/lang/String;)V
astore 4
start local 4 3: aload 4
invokestatic sun.jvmstat.monitor.MonitoredHost.getMonitoredHost:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredHost;
astore 5
start local 5 4: aload 5
aload 4
invokevirtual sun.jvmstat.monitor.MonitoredHost.getMonitoredVm:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredVm;
astore 2
5: aload 2
invokestatic sun.jvmstat.monitor.MonitoredVmUtil.isAttachable:(Lsun/jvmstat/monitor/MonitoredVm;)Z
ifeq 9
6: aload 2
ifnull 8
7: aload 2
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
8: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm int sun.jvmstat.monitor.VmIdentifier sun.jvmstat.monitor.MonitoredHost
StackMap stack:
return
9: StackMap locals:
StackMap stack:
aload 2
invokestatic sun.jvmstat.monitor.MonitoredVmUtil.isKernelVM:(Lsun/jvmstat/monitor/MonitoredVm;)Z
istore 3
end local 5 end local 4 10: goto 22
StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm int
StackMap stack: java.lang.Throwable
11: astore 4
start local 4 12: aload 4
instanceof java.lang.ThreadDeath
ifeq 15
13: aload 4
checkcast java.lang.ThreadDeath
astore 5
start local 5 14: aload 5
athrow
end local 5 15: StackMap locals: java.lang.Throwable
StackMap stack:
aload 2
ifnull 17
16: aload 2
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
17: StackMap locals:
StackMap stack:
return
end local 4 18: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm int
StackMap stack: java.lang.Throwable
astore 6
19: aload 2
ifnull 21
20: aload 2
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
21: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm int top top java.lang.Throwable
StackMap stack:
aload 6
athrow
22: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm int
StackMap stack:
aload 2
ifnull 24
23: aload 2
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
24: StackMap locals:
StackMap stack:
iload 3
ifeq 26
25: new com.sun.tools.attach.AttachNotSupportedException
dup
ldc "Kernel VM does not support the attach mechanism"
invokespecial com.sun.tools.attach.AttachNotSupportedException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
new com.sun.tools.attach.AttachNotSupportedException
dup
ldc "The VM does not support the attach mechanism"
invokespecial com.sun.tools.attach.AttachNotSupportedException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/tools/attach/HotSpotAttachProvider;
0 27 1 id Ljava/lang/String;
1 27 2 mvm Lsun/jvmstat/monitor/MonitoredVm;
2 27 3 isKernelVM Z
3 10 4 vmid Lsun/jvmstat/monitor/VmIdentifier;
4 10 5 host Lsun/jvmstat/monitor/MonitoredHost;
12 18 4 t Ljava/lang/Throwable;
14 15 5 td Ljava/lang/ThreadDeath;
Exception table:
from to target type
2 6 11 Class java.lang.Throwable
9 10 11 Class java.lang.Throwable
2 6 18 any
9 15 18 any
Exceptions:
throws com.sun.tools.attach.AttachNotSupportedException
MethodParameters:
Name Flags
id
}
SourceFile: "HotSpotAttachProvider.java"
NestMembers:
sun.tools.attach.HotSpotAttachProvider$HotSpotVirtualMachineDescriptor
InnerClasses:
HotSpotVirtualMachineDescriptor = sun.tools.attach.HotSpotAttachProvider$HotSpotVirtualMachineDescriptor of sun.tools.attach.HotSpotAttachProvider