public final class org.graalvm.compiler.serviceprovider.GraalServices
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.serviceprovider.GraalServices
super_class: java.lang.Object
{
private static volatile java.lang.reflect.Method loadMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/serviceprovider/GraalServices;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.serviceprovider.GraalServices.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 Lorg/graalvm/compiler/serviceprovider/GraalServices;
public static void openJVMCITo(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: getstatic org.graalvm.compiler.serviceprovider.JDK9Method.getModule:Lorg/graalvm/compiler/serviceprovider/JDK9Method;
ldc Ljdk/vm/ci/services/Services;
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.serviceprovider.JDK9Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 1
start local 1 1: getstatic org.graalvm.compiler.serviceprovider.JDK9Method.getModule:Lorg/graalvm/compiler/serviceprovider/JDK9Method;
aload 0
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.serviceprovider.JDK9Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 2: aload 1
aload 2
if_acmpeq 10
3: getstatic org.graalvm.compiler.serviceprovider.JDK9Method.getPackages:Lorg/graalvm/compiler/serviceprovider/JDK9Method;
aload 1
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.serviceprovider.JDK9Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
astore 3
start local 3 4: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: java.lang.Class java.lang.Object java.lang.Object java.util.Set top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 6: getstatic org.graalvm.compiler.serviceprovider.JDK9Method.isOpenTo:Lorg/graalvm/compiler/serviceprovider/JDK9Method;
aload 1
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
dup
iconst_1
aload 2
aastore
invokevirtual org.graalvm.compiler.serviceprovider.JDK9Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 6
start local 6 7: iload 6
ifne 9
8: getstatic org.graalvm.compiler.serviceprovider.JDK9Method.addOpens:Lorg/graalvm/compiler/serviceprovider/JDK9Method;
aload 1
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
dup
iconst_1
aload 2
aastore
invokevirtual org.graalvm.compiler.serviceprovider.JDK9Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 4 9: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 3 10: StackMap locals: java.lang.Class java.lang.Object java.lang.Object
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 other Ljava/lang/Class<*>;
1 11 1 jvmci Ljava/lang/Object;
2 11 2 otherModule Ljava/lang/Object;
4 10 3 packages Ljava/util/Set<Ljava/lang/String;>;
6 9 4 pkg Ljava/lang/String;
7 9 6 opened Z
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
other
public static <S> java.lang.Iterable<S> load(java.lang.Class<S>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Iterable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic org.graalvm.compiler.serviceprovider.GraalServices.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "jdk.vm.ci"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "JVMCI services must be loaded via "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Ljdk/vm/ci/services/Services;
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;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.serviceprovider.JDK9Method.Java8OrEarlier:Z
ifeq 3
2: aload 0
invokestatic org.graalvm.compiler.serviceprovider.GraalServices.load8:(Ljava/lang/Class;)Ljava/lang/Iterable;
areturn
3: StackMap locals:
StackMap stack:
aload 0
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;)Ljava/util/ServiceLoader;
astore 1
start local 1 4: new org.graalvm.compiler.serviceprovider.GraalServices$1
dup
aload 1
invokespecial org.graalvm.compiler.serviceprovider.GraalServices$1.<init>:(Ljava/lang/Iterable;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 service Ljava/lang/Class<TS;>;
4 5 1 iterable Ljava/lang/Iterable<TS;>;
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;)Ljava/lang/Iterable<TS;>;
MethodParameters:
Name Flags
service
private static <S> java.lang.Iterable<S> load8(java.lang.Class<S>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Iterable;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: getstatic org.graalvm.compiler.serviceprovider.GraalServices.loadMethod:Ljava/lang/reflect/Method;
ifnonnull 2
1: ldc Ljdk/vm/ci/services/Services;
ldc "load"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putstatic org.graalvm.compiler.serviceprovider.GraalServices.loadMethod:Ljava/lang/reflect/Method;
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.serviceprovider.GraalServices.loadMethod:Ljava/lang/reflect/Method;
aconst_null
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Iterable
3: areturn
4: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 5: new java.lang.InternalError
dup
aload 1
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 service Ljava/lang/Class<TS;>;
5 6 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
Exceptions:
throws java.lang.InternalError
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;)Ljava/lang/Iterable<TS;>;
MethodParameters:
Name Flags
service
public static <S> S loadSingle(java.lang.Class<S>, );
descriptor: (Ljava/lang/Class;Z)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=6, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.serviceprovider.GraalServices.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "jdk.vm.ci"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "JVMCI services must be loaded via "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Ljdk/vm/ci/services/Services;
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;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.serviceprovider.GraalServices.load:(Ljava/lang/Class;)Ljava/lang/Iterable;
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aload 2
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
start local 4 4: goto 9
5: StackMap locals: java.lang.Iterable java.lang.Object java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
6: aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 9
7: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 5
start local 5 8: new java.lang.InternalError
dup
ldc "Multiple %s providers found: %s, %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_2
aload 5
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 5 9: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 4 10: goto 12
StackMap locals: java.lang.Class int java.lang.Iterable java.lang.Object
StackMap stack: java.util.ServiceConfigurationError
11: pop
12: StackMap locals:
StackMap stack:
aload 3
ifnonnull 15
13: iload 1
ifeq 15
14: new java.lang.InternalError
dup
ldc "No provider for %s found"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 service Ljava/lang/Class<TS;>;
0 16 1 required Z
2 16 2 providers Ljava/lang/Iterable<TS;>;
3 16 3 singleProvider TS;
4 10 4 it Ljava/util/Iterator<TS;>;
8 9 5 other TS;
Exception table:
from to target type
3 10 11 Class java.util.ServiceConfigurationError
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;Z)TS;
MethodParameters:
Name Flags
service
required
}
SourceFile: "GraalServices.java"
NestMembers:
org.graalvm.compiler.serviceprovider.GraalServices$1 org.graalvm.compiler.serviceprovider.GraalServices$1$1
InnerClasses:
org.graalvm.compiler.serviceprovider.GraalServices$1