public final class org.graalvm.compiler.hotspot.JVMCIVersionCheck
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.JVMCIVersionCheck
super_class: java.lang.Object
{
private static final org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version JVMCI_MIN_VERSION;
descriptor: Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String javaSpecVersion;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String vmVersion;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.String> props;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: new org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version3
dup
bipush 20
iconst_1
iconst_2
invokespecial org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version3.<init>:(III)V
putstatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.JVMCI_MIN_VERSION:Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
return
LocalVariableTable:
Start End Slot Name Signature
private void failVersionCheck(boolean, java.lang.String, java.lang.Object[]);
descriptor: (ZLjava/lang/String;[Ljava/lang/Object;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=6, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.Formatter
dup
invokespecial java.util.Formatter.<init>:()V
aload 2
aload 3
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
astore 4
start local 4 1: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.props:Ljava/util/Map;
ldc "java.home"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 2: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.props:Ljava/util/Map;
ldc "java.vm.name"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 3: aload 4
ldc "Set the JVMCI_VERSION_CHECK environment variable to \"ignore\" to suppress "
iconst_0
anewarray java.lang.Object
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
4: aload 4
ldc "this error or to \"warn\" to emit a warning and continue execution.%n"
iconst_0
anewarray java.lang.Object
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
5: aload 4
ldc "Currently used Java home directory is %s.%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
6: aload 4
ldc "Currently used VM configuration is: %s%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 6
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
7: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.javaSpecVersion:Ljava/lang/String;
ldc "1.9"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifge 10
8: aload 4
ldc "Download the latest JVMCI JDK 8 from https://github.com/graalvm/openjdk8-jvmci-builder/releases"
iconst_0
anewarray java.lang.Object
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
9: goto 14
10: StackMap locals: java.util.Formatter java.lang.String java.lang.String
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.javaSpecVersion:Ljava/lang/String;
ldc "11"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifne 13
aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
ldc "-jvmci-"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 13
11: aload 4
ldc "Download the latest Labs OpenJDK 11 from https://github.com/graalvm/labs-openjdk-11/releases"
iconst_0
anewarray java.lang.Object
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
12: goto 14
13: StackMap locals:
StackMap stack:
aload 4
ldc "Download JDK 11 or later."
iconst_0
anewarray java.lang.Object
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
14: StackMap locals:
StackMap stack:
ldc "JVMCI_VERSION_CHECK"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 15: ldc "warn"
aload 7
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 18
16: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 4
invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
17: goto 25
StackMap locals: java.lang.String
StackMap stack:
18: ldc "ignore"
aload 7
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 20
19: return
20: StackMap locals:
StackMap stack:
iload 1
ifeq 24
21: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 4
invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
22: iconst_m1
invokestatic java.lang.System.exit:(I)V
23: goto 25
24: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
aload 4
invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
return
end local 7 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 26 0 this Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck;
0 26 1 exit Z
0 26 2 reason Ljava/lang/String;
0 26 3 args [Ljava/lang/Object;
1 26 4 errorMessage Ljava/util/Formatter;
2 26 5 javaHome Ljava/lang/String;
3 26 6 vmName Ljava/lang/String;
15 26 7 value Ljava/lang/String;
MethodParameters:
Name Flags
exit
reason
args
private void <init>(java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String);
descriptor: (Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.props:Ljava/util/Map;
2: aload 0
aload 2
putfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.javaSpecVersion:Ljava/lang/String;
3: aload 0
aload 3
putfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck;
0 5 1 props Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 5 2 javaSpecVersion Ljava/lang/String;
0 5 3 vmVersion Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;)V
MethodParameters:
Name Flags
props
javaSpecVersion
vmVersion
static void check(java.util.Map<java.lang.String, java.lang.String>, );
descriptor: (Ljava/util/Map;Z)V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new org.graalvm.compiler.hotspot.JVMCIVersionCheck
dup
aload 0
aload 0
ldc "java.specification.version"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
aload 0
ldc "java.vm.version"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokespecial org.graalvm.compiler.hotspot.JVMCIVersionCheck.<init>:(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
iload 1
getstatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.JVMCI_MIN_VERSION:Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
invokevirtual org.graalvm.compiler.hotspot.JVMCIVersionCheck.run:(ZLorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 props Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 3 1 exitOnFailure Z
1 3 2 checker Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Z)V
MethodParameters:
Name Flags
props
exitOnFailure
public static void check(java.util.Map<java.lang.String, java.lang.String>, org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version, java.lang.String, java.lang.String, );
descriptor: (Ljava/util/Map;Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;Ljava/lang/String;Ljava/lang/String;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new org.graalvm.compiler.hotspot.JVMCIVersionCheck
dup
aload 0
aload 2
aload 3
invokespecial org.graalvm.compiler.hotspot.JVMCIVersionCheck.<init>:(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
astore 5
start local 5 1: aload 5
iload 4
aload 1
invokevirtual org.graalvm.compiler.hotspot.JVMCIVersionCheck.run:(ZLorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;)V
2: 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 3 0 props Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 3 1 minVersion Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
0 3 2 javaSpecVersion Ljava/lang/String;
0 3 3 javaVmVersion Ljava/lang/String;
0 3 4 exitOnFailure Z
1 3 5 checker Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;Ljava/lang/String;Ljava/lang/String;Z)V
MethodParameters:
Name Flags
props
minVersion
javaSpecVersion
javaVmVersion
exitOnFailure
private void run(boolean, org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version);
descriptor: (ZLorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.javaSpecVersion:Ljava/lang/String;
ldc "1.9"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifge 10
1: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version.parse:(Ljava/lang/String;)Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
astore 3
start local 3 2: aload 3
ifnull 6
3: aload 3
aload 2
invokeinterface org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version.isLessThan:(Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;)Z
ifeq 5
4: aload 0
iload 1
ldc "The VM does not support the minimum JVMCI API version required by Graal: %s < %s.%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 2
aastore
invokevirtual org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
5: StackMap locals: org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version
StackMap stack:
return
6: StackMap locals:
StackMap stack:
aload 0
iload 1
ldc "The VM does not support the minimum JVMCI API version required by Graal.%nCannot read JVMCI version from java.vm.version property: %s.%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
7: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
aastore
8: invokevirtual org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
end local 3 9: goto 26
StackMap locals:
StackMap stack:
10: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.javaSpecVersion:Ljava/lang/String;
ldc "11"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifge 13
11: aload 0
iload 1
ldc "Graal is not compatible with the JVMCI API in JDK 9 and 10.%n"
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
12: goto 26
13: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
ldc "SNAPSHOT"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 15
14: return
15: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
ldc "internal"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 17
16: return
17: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
ldc "-jvmci-"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 26
18: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version.parse:(Ljava/lang/String;)Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
astore 3
start local 3 19: aload 3
ifnull 23
20: aload 3
aload 2
invokeinterface org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version.isLessThan:(Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;)Z
ifeq 22
21: aload 0
iload 1
ldc "The VM does not support the minimum JVMCI API version required by Graal: %s < %s.%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 2
aastore
invokevirtual org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
22: StackMap locals: org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version
StackMap stack:
return
23: StackMap locals:
StackMap stack:
aload 0
iload 1
ldc "The VM does not support the minimum JVMCI API version required by Graal.%nCannot read JVMCI version from java.vm.version property: %s.%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
24: aload 0
getfield org.graalvm.compiler.hotspot.JVMCIVersionCheck.vmVersion:Ljava/lang/String;
aastore
25: invokevirtual org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
end local 3 26: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck;
0 27 1 exitOnFailure Z
0 27 2 minVersion Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
2 9 3 v Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
19 26 3 v Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck$Version;
MethodParameters:
Name Flags
exitOnFailure
minVersion
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: invokestatic java.lang.System.getProperties:()Ljava/util/Properties;
astore 1
start local 1 1: new java.util.HashMap
dup
aload 1
invokevirtual java.util.Properties.size:()I
invokespecial java.util.HashMap.<init>:(I)V
astore 2
start local 2 2: aload 1
invokevirtual java.util.Properties.stringPropertyNames:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: java.lang.String[] java.util.Properties java.util.Map top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: aload 2
aload 3
aload 1
aload 3
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 2
iconst_1
invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.check:(Ljava/util/Map;Z)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 args [Ljava/lang/String;
1 8 1 sprops Ljava/util/Properties;
2 8 2 props Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
4 5 3 name Ljava/lang/String;
MethodParameters:
Name Flags
args
}
SourceFile: "JVMCIVersionCheck.java"
NestMembers:
org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version2 org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version3
InnerClasses:
public abstract Version = org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version of org.graalvm.compiler.hotspot.JVMCIVersionCheck
public Version2 = org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version2 of org.graalvm.compiler.hotspot.JVMCIVersionCheck
public Version3 = org.graalvm.compiler.hotspot.JVMCIVersionCheck$Version3 of org.graalvm.compiler.hotspot.JVMCIVersionCheck