public class sun.jvm.hotspot.utilities.PlatformInfo
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.utilities.PlatformInfo
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/utilities/PlatformInfo;
public static java.lang.String getOS();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: aload 0
ldc "SunOS"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: ldc "solaris"
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc "Linux"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: ldc "linux"
areturn
5: StackMap locals:
StackMap stack:
aload 0
ldc "FreeBSD"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
6: ldc "bsd"
areturn
7: StackMap locals:
StackMap stack:
aload 0
ldc "NetBSD"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
8: ldc "bsd"
areturn
9: StackMap locals:
StackMap stack:
aload 0
ldc "OpenBSD"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
10: ldc "bsd"
areturn
11: StackMap locals:
StackMap stack:
aload 0
ldc "Darwin"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 12
aload 0
ldc "OS X"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 13
12: StackMap locals:
StackMap stack:
ldc "darwin"
areturn
13: StackMap locals:
StackMap stack:
aload 0
ldc "Windows"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 15
14: ldc "win32"
areturn
15: StackMap locals:
StackMap stack:
new sun.jvm.hotspot.utilities.UnsupportedPlatformException
dup
new java.lang.StringBuilder
dup
ldc "Operating system "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not yet supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvm.hotspot.utilities.UnsupportedPlatformException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 16 0 os Ljava/lang/String;
Exceptions:
throws sun.jvm.hotspot.utilities.UnsupportedPlatformException
public static boolean knownCPU(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: bipush 9
anewarray java.lang.String
dup
iconst_0
ldc "i386"
aastore
dup
iconst_1
ldc "x86"
aastore
dup
iconst_2
ldc "x86_64"
aastore
dup
iconst_3
ldc "amd64"
aastore
dup
iconst_4
ldc "sparc"
aastore
dup
iconst_5
ldc "sparcv9"
aastore
dup
bipush 6
ldc "ppc64"
aastore
dup
bipush 7
ldc "ppc64le"
aastore
dup
bipush 8
ldc "aarch64"
aastore
1: astore 1
start local 1 2: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: aload 2
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
5: iconst_1
ireturn
end local 2 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 3
8: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 cpu Ljava/lang/String;
2 9 1 KNOWN [Ljava/lang/String;
4 6 2 s Ljava/lang/String;
MethodParameters:
Name Flags
cpu
public static java.lang.String getCPU();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: ldc "os.arch"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: ldc "sun.jvm.hotspot.utilities.PlatformInfoClosed"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
start local 1 2: aload 1
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.utilities.AltPlatformInfo
astore 2
start local 2 3: aload 2
aload 0
invokeinterface sun.jvm.hotspot.utilities.AltPlatformInfo.knownCPU:(Ljava/lang/String;)Z
ifeq 7
4: aload 2
aload 0
invokeinterface sun.jvm.hotspot.utilities.AltPlatformInfo.getCPU:(Ljava/lang/String;)Ljava/lang/String;
5: areturn
end local 2 end local 1 6: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
pop
7: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.jvm.hotspot.utilities.PlatformInfo.knownCPU:(Ljava/lang/String;)Z
ifne 9
8: new sun.jvm.hotspot.utilities.UnsupportedPlatformException
dup
new java.lang.StringBuilder
dup
ldc "CPU type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not yet supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvm.hotspot.utilities.UnsupportedPlatformException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
ldc "i386"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
10: ldc "x86"
areturn
11: StackMap locals:
StackMap stack:
aload 0
ldc "sparcv9"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
12: ldc "sparc"
areturn
13: StackMap locals:
StackMap stack:
aload 0
ldc "x86_64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
14: ldc "amd64"
areturn
15: StackMap locals:
StackMap stack:
aload 0
ldc "ppc64le"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
16: ldc "ppc64"
areturn
17: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 18 0 cpu Ljava/lang/String;
2 6 1 pic Ljava/lang/Class;
3 6 2 api Lsun/jvm/hotspot/utilities/AltPlatformInfo;
Exception table:
from to target type
1 5 6 Class java.lang.Exception
Exceptions:
throws sun.jvm.hotspot.utilities.UnsupportedPlatformException
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokestatic sun.jvm.hotspot.utilities.PlatformInfo.getOS:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 args [Ljava/lang/String;
MethodParameters:
Name Flags
args
}
SourceFile: "PlatformInfo.java"