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
{
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
aload 4
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)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 38
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;
checkcast java.lang.Integer
astore 4
start local 4 15: aload 4
invokevirtual java.lang.Integer.toString:()Ljava/lang/String;
astore 6
start local 6 16: aload 6
astore 7
start local 7 17: iconst_0
istore 8
start local 8 18: aconst_null
astore 9
start local 9 19: 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
20: aload 9
invokestatic sun.jvmstat.monitor.MonitoredVmUtil.isAttachable:(Lsun/jvmstat/monitor/MonitoredVm;)Z
istore 8
21: aload 9
invokestatic sun.jvmstat.monitor.MonitoredVmUtil.commandLine:(Lsun/jvmstat/monitor/MonitoredVm;)Ljava/lang/String;
astore 7
22: goto 24
StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set java.lang.Integer java.util.Iterator java.lang.String java.lang.String int sun.jvmstat.monitor.MonitoredVm
StackMap stack: java.lang.Exception
23: pop
24: StackMap locals:
StackMap stack:
iload 8
ifeq 36
25: 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
26: goto 36
StackMap locals:
StackMap stack: java.lang.Throwable
27: astore 10
start local 10 28: aload 10
instanceof java.lang.ThreadDeath
ifeq 30
29: aload 10
checkcast java.lang.ThreadDeath
athrow
end local 10 30: StackMap locals:
StackMap stack:
aload 9
ifnull 38
31: aload 9
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
goto 38
32: StackMap locals:
StackMap stack: java.lang.Throwable
astore 11
33: aload 9
ifnull 35
34: aload 9
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
35: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set java.lang.Integer java.util.Iterator java.lang.String java.lang.String int sun.jvmstat.monitor.MonitoredVm top java.lang.Throwable
StackMap stack:
aload 11
athrow
36: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.util.ArrayList sun.jvmstat.monitor.MonitoredHost java.util.Set java.lang.Integer java.util.Iterator java.lang.String java.lang.String int sun.jvmstat.monitor.MonitoredVm
StackMap stack:
aload 9
ifnull 38
37: aload 9
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
end local 9 end local 8 end local 7 end local 6 end local 4 38: 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
39: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Lsun/tools/attach/HotSpotAttachProvider;
2 40 1 result Ljava/util/ArrayList<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
3 5 2 host Lsun/jvmstat/monitor/MonitoredHost;
13 40 2 host Lsun/jvmstat/monitor/MonitoredHost;
4 5 3 vms Ljava/util/Set<Ljava/lang/Integer;>;
13 40 3 vms Ljava/util/Set<Ljava/lang/Integer;>;
6 13 4 t Ljava/lang/Throwable;
15 38 4 vmid Ljava/lang/Integer;
16 38 6 pid Ljava/lang/String;
17 38 7 name Ljava/lang/String;
18 38 8 isAttachable Z
19 38 9 mvm Lsun/jvmstat/monitor/MonitoredVm;
28 30 10 t Ljava/lang/Throwable;
Exception table:
from to target type
2 4 5 Class java.lang.Throwable
20 22 23 Class java.lang.Exception
19 26 27 Class java.lang.Throwable
19 30 32 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=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: new sun.jvmstat.monitor.VmIdentifier
dup
aload 1
invokespecial sun.jvmstat.monitor.VmIdentifier.<init>:(Ljava/lang/String;)V
astore 3
start local 3 2: aload 3
invokestatic sun.jvmstat.monitor.MonitoredHost.getMonitoredHost:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredHost;
astore 4
start local 4 3: aload 4
aload 3
invokevirtual sun.jvmstat.monitor.MonitoredHost.getMonitoredVm:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredVm;
astore 2
4: aload 2
invokestatic sun.jvmstat.monitor.MonitoredVmUtil.isAttachable:(Lsun/jvmstat/monitor/MonitoredVm;)Z
ifeq 19
5: aload 2
ifnull 7
6: aload 2
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
7: StackMap locals: sun.jvmstat.monitor.MonitoredVm sun.jvmstat.monitor.VmIdentifier sun.jvmstat.monitor.MonitoredHost
StackMap stack:
return
end local 4 end local 3 8: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm
StackMap stack: java.lang.Throwable
astore 3
start local 3 9: aload 3
instanceof java.lang.ThreadDeath
ifeq 12
10: aload 3
checkcast java.lang.ThreadDeath
astore 4
start local 4 11: aload 4
athrow
end local 4 12: StackMap locals: java.lang.Throwable
StackMap stack:
aload 2
ifnull 14
13: aload 2
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
14: StackMap locals:
StackMap stack:
return
end local 3 15: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm
StackMap stack: java.lang.Throwable
astore 5
16: aload 2
ifnull 18
17: aload 2
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
18: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm top top java.lang.Throwable
StackMap stack:
aload 5
athrow
19: StackMap locals: sun.tools.attach.HotSpotAttachProvider java.lang.String sun.jvmstat.monitor.MonitoredVm
StackMap stack:
aload 2
ifnull 21
20: aload 2
invokeinterface sun.jvmstat.monitor.MonitoredVm.detach:()V
21: StackMap locals:
StackMap stack:
new com.sun.tools.attach.AttachNotSupportedException
dup
22: ldc "The VM does not support the attach mechanism"
23: invokespecial com.sun.tools.attach.AttachNotSupportedException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/tools/attach/HotSpotAttachProvider;
0 24 1 id Ljava/lang/String;
1 24 2 mvm Lsun/jvmstat/monitor/MonitoredVm;
2 8 3 vmid Lsun/jvmstat/monitor/VmIdentifier;
3 8 4 host Lsun/jvmstat/monitor/MonitoredHost;
9 15 3 t Ljava/lang/Throwable;
11 12 4 td Ljava/lang/ThreadDeath;
Exception table:
from to target type
1 5 8 Class java.lang.Throwable
1 5 15 any
8 12 15 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