public class com.sun.management.internal.HotSpotDiagnostic implements com.sun.management.HotSpotDiagnosticMXBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.management.internal.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 Lcom/sun/management/internal/HotSpotDiagnostic;
public void dumpHeap(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: ldc "jdk.management.heapdump.allowAnyFileSuffix"
astore 3
start local 3 1: aload 3
invokedynamic run(Ljava/lang/String;)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;
com/sun/management/internal/HotSpotDiagnostic.lambda$0(Ljava/lang/String;)Ljava/lang/Boolean; (6)
()Ljava/lang/Boolean;
astore 4
start local 4 2: aload 4
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 5
start local 5 3: iload 5
ifne 5
aload 1
ldc ".hprof"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "heapdump file must have .hprof extention"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.String java.security.PrivilegedAction int
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 6
start local 6 6: aload 6
ifnull 9
7: aload 6
aload 1
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
8: invokestatic sun.management.Util.checkControlAccess:()V
9: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
aload 1
iload 2
invokevirtual com.sun.management.internal.HotSpotDiagnostic.dumpHeap0:(Ljava/lang/String;Z)V
10: return
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 11 0 this Lcom/sun/management/internal/HotSpotDiagnostic;
0 11 1 outputFile Ljava/lang/String;
0 11 2 live Z
1 11 3 propertyName Ljava/lang/String;
2 11 4 pa Ljava/security/PrivilegedAction<Ljava/lang/Boolean;>;
3 11 5 allowAnyFileSuffix Z
6 11 6 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 com.sun.management.internal.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: com.sun.management.internal.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 com.sun.management.internal.Flag
astore 3
start local 3 4: aload 3
invokevirtual com.sun.management.internal.Flag.isWriteable:()Z
ifeq 6
aload 3
invokevirtual com.sun.management.internal.Flag.isExternal:()Z
ifeq 6
5: aload 2
aload 3
invokevirtual com.sun.management.internal.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 Lcom/sun/management/internal/HotSpotDiagnostic;
1 8 1 allFlags Ljava/util/List<Lcom/sun/management/internal/Flag;>;
2 8 2 result Ljava/util/List<Lcom/sun/management/VMOption;>;
4 6 3 flag Lcom/sun/management/internal/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 com.sun.management.internal.Flag.getFlag:(Ljava/lang/String;)Lcom/sun/management/internal/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: com.sun.management.internal.Flag
StackMap stack:
aload 2
invokevirtual com.sun.management.internal.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 Lcom/sun/management/internal/HotSpotDiagnostic;
0 8 1 name Ljava/lang/String;
3 8 2 f Lcom/sun/management/internal/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.Util.checkControlAccess:()V
5: aload 1
invokestatic com.sun.management.internal.Flag.getFlag:(Ljava/lang/String;)Lcom/sun/management/internal/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: com.sun.management.internal.Flag
StackMap stack:
aload 3
invokevirtual com.sun.management.internal.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 com.sun.management.internal.Flag.getValue:()Ljava/lang/Object;
astore 4
start local 4 15: aload 4
instanceof java.lang.Long
ifeq 24
16: aload 2
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lstore 5
start local 5 17: aload 1
lload 5
invokestatic com.sun.management.internal.Flag.setLongValue:(Ljava/lang/String;J)V
end local 5 18: goto 49
StackMap locals: com.sun.management.internal.HotSpotDiagnostic java.lang.String java.lang.String com.sun.management.internal.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;
aload 5
23: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 24: StackMap locals:
StackMap stack:
aload 4
instanceof java.lang.Double
ifeq 33
25: aload 2
invokestatic java.lang.Double.parseDouble:(Ljava/lang/String;)D
dstore 5
start local 5 26: aload 1
dload 5
invokestatic com.sun.management.internal.Flag.setDoubleValue:(Ljava/lang/String;D)V
end local 5 27: goto 49
StackMap locals:
StackMap stack: java.lang.NumberFormatException
28: astore 5
start local 5 29: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid value: VM Option \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
30: 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;
31: ldc " expects numeric value"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
32: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 33: StackMap locals:
StackMap stack:
aload 4
instanceof java.lang.Boolean
ifeq 42
34: aload 2
ldc "true"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 40
35: aload 2
ldc "false"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 40
36: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid value: VM Option \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
37: 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;
38: ldc " expects \"true\" or \"false\"."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
39: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
40: StackMap locals:
StackMap stack:
aload 1
aload 2
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
invokestatic com.sun.management.internal.Flag.setBooleanValue:(Ljava/lang/String;Z)V
41: goto 49
StackMap locals:
StackMap stack:
42: aload 4
instanceof java.lang.String
ifeq 45
43: aload 1
aload 2
invokestatic com.sun.management.internal.Flag.setStringValue:(Ljava/lang/String;Ljava/lang/String;)V
44: goto 49
45: 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
46: 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;
47: 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;
48: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
49: 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 50 0 this Lcom/sun/management/internal/HotSpotDiagnostic;
0 50 1 name Ljava/lang/String;
0 50 2 value Ljava/lang/String;
6 50 3 flag Lcom/sun/management/internal/Flag;
15 50 4 v Ljava/lang/Object;
17 18 5 l J
20 24 5 e Ljava/lang/NumberFormatException;
26 27 5 d D
29 33 5 e Ljava/lang/NumberFormatException;
Exception table:
from to target type
16 18 19 Class java.lang.NumberFormatException
25 27 28 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
name
value
public javax.management.ObjectName getObjectName();
descriptor: ()Ljavax/management/ObjectName;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "com.sun.management:type=HotSpotDiagnostic"
invokestatic sun.management.Util.newObjectName:(Ljava/lang/String;)Ljavax/management/ObjectName;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/management/internal/HotSpotDiagnostic;
private static java.lang.Boolean lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
0: aload 0
ldc "false"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "HotSpotDiagnostic.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles