public class sun.management.HotSpotDiagnostic implements com.sun.management.HotSpotDiagnosticMXBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.management.HotSpotDiagnostic
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/management/HotSpotDiagnostic;
public void dumpHeap(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new sun.management.HotSpotDiagnostic$1
dup
aload 0
invokespecial sun.management.HotSpotDiagnostic$1.<init>:(Lsun/management/HotSpotDiagnostic;)V
astore 3
start local 3 1: aload 3
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 4
start local 4 2: iload 4
ifne 4
aload 1
ldc ".hprof"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "heapdump file must have .hprof extention"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.security.PrivilegedAction int
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 5
start local 5 5: aload 5
ifnull 8
6: aload 5
aload 1
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
7: invokestatic sun.management.ManagementFactory.checkControlAccess:()V
8: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
aload 1
iload 2
invokevirtual sun.management.HotSpotDiagnostic.dumpHeap0:(Ljava/lang/String;Z)V
9: 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 10 0 this Lsun/management/HotSpotDiagnostic;
0 10 1 outputFile Ljava/lang/String;
0 10 2 live Z
1 10 3 pa Ljava/security/PrivilegedAction<Ljava/lang/Boolean;>;
2 10 4 allowAnyFileSuffix Z
5 10 5 security Ljava/lang/SecurityManager;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
outputFile
live
private native void dumpHeap0(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
outputFile
live
public java.util.List<com.sun.management.VMOption> getDiagnosticOptions();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: invokestatic sun.management.Flag.getAllFlags:()Ljava/util/List;
astore 1
start local 1 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: sun.management.HotSpotDiagnostic java.util.List java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.management.Flag
astore 3
start local 3 4: aload 3
invokevirtual sun.management.Flag.isWriteable:()Z
ifeq 6
aload 3
invokevirtual sun.management.Flag.isExternal:()Z
ifeq 6
5: aload 2
aload 3
invokevirtual sun.management.Flag.getVMOption:()Lcom/sun/management/VMOption;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/management/HotSpotDiagnostic;
1 8 1 allFlags Ljava/util/List<Lsun/management/Flag;>;
2 8 2 result Ljava/util/List<Lcom/sun/management/VMOption;>;
4 6 3 flag Lsun/management/Flag;
Signature: ()Ljava/util/List<Lcom/sun/management/VMOption;>;
public com.sun.management.VMOption getVMOption(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/management/VMOption;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "name cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.management.Flag.getFlag:(Ljava/lang/String;)Lsun/management/Flag;
astore 2
start local 2 3: aload 2
ifnonnull 7
4: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "VM option \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" does not exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: sun.management.Flag
StackMap stack:
aload 2
invokevirtual sun.management.Flag.getVMOption:()Lcom/sun/management/VMOption;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/management/HotSpotDiagnostic;
0 8 1 name Ljava/lang/String;
3 8 2 f Lsun/management/Flag;
MethodParameters:
Name Flags
name
public void setVMOption(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "name cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "value cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
invokestatic sun.management.ManagementFactory.checkControlAccess:()V
5: aload 1
invokestatic sun.management.Flag.getFlag:(Ljava/lang/String;)Lsun/management/Flag;
astore 3
start local 3 6: aload 3
ifnonnull 10
7: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "VM option \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" does not exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: sun.management.Flag
StackMap stack:
aload 3
invokevirtual sun.management.Flag.isWriteable:()Z
ifne 14
11: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "VM Option \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
12: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" is not writeable"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 3
invokevirtual sun.management.Flag.getValue:()Ljava/lang/Object;
astore 4
start local 4 15: aload 4
instanceof java.lang.Long
ifeq 27
16: aload 2
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lstore 5
start local 5 17: aload 1
lload 5
invokestatic sun.management.Flag.setLongValue:(Ljava/lang/String;J)V
end local 5 18: goto 43
StackMap locals: sun.management.HotSpotDiagnostic java.lang.String java.lang.String sun.management.Flag java.lang.Object
StackMap stack: java.lang.NumberFormatException
19: astore 5
start local 5 20: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid value: VM Option \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
21: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
22: ldc " expects numeric value"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
23: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
24: astore 6
start local 6 25: aload 6
aload 5
invokevirtual java.lang.IllegalArgumentException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
26: aload 6
athrow
end local 6 end local 5 27: StackMap locals:
StackMap stack:
aload 4
instanceof java.lang.Boolean
ifeq 36
28: aload 2
ldc "true"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 34
29: aload 2
ldc "false"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 34
30: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid value: VM Option \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
31: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
32: ldc " expects \"true\" or \"false\"."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
33: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
34: StackMap locals:
StackMap stack:
aload 1
aload 2
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
invokestatic sun.management.Flag.setBooleanValue:(Ljava/lang/String;Z)V
35: goto 43
StackMap locals:
StackMap stack:
36: aload 4
instanceof java.lang.String
ifeq 39
37: aload 1
aload 2
invokestatic sun.management.Flag.setStringValue:(Ljava/lang/String;Ljava/lang/String;)V
38: goto 43
39: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "VM Option \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
40: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" is of an unsupported type: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
41: aload 4
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
42: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
43: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 44 0 this Lsun/management/HotSpotDiagnostic;
0 44 1 name Ljava/lang/String;
0 44 2 value Ljava/lang/String;
6 44 3 flag Lsun/management/Flag;
15 44 4 v Ljava/lang/Object;
17 18 5 l J
20 27 5 e Ljava/lang/NumberFormatException;
25 27 6 iae Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
16 18 19 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
name
value
}
SourceFile: "HotSpotDiagnostic.java"
NestMembers:
sun.management.HotSpotDiagnostic$1
InnerClasses:
sun.management.HotSpotDiagnostic$1