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
{
public static final int JAVA_SPECIFICATION_VERSION;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final boolean Java8OrEarlier;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final boolean Java11OrEarlier;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final java.lang.Module JVMCI_MODULE;
descriptor: Ljava/lang/Module;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String JVMCI_RUNTIME_PACKAGE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.vm.ci.runtime"
private static final java.util.concurrent.atomic.AtomicLong globalTimeStamp;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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=2, 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: invokestatic org.graalvm.compiler.serviceprovider.GraalServices.getJavaSpecificationVersion:()I
putstatic org.graalvm.compiler.serviceprovider.GraalServices.JAVA_SPECIFICATION_VERSION:I
4: getstatic org.graalvm.compiler.serviceprovider.GraalServices.JAVA_SPECIFICATION_VERSION:I
bipush 8
if_icmpgt 5
iconst_1
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: putstatic org.graalvm.compiler.serviceprovider.GraalServices.Java8OrEarlier:Z
7: getstatic org.graalvm.compiler.serviceprovider.GraalServices.JAVA_SPECIFICATION_VERSION:I
bipush 11
if_icmpgt 8
iconst_1
goto 9
StackMap locals:
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: putstatic org.graalvm.compiler.serviceprovider.GraalServices.Java11OrEarlier:Z
10: ldc Ljdk/vm/ci/services/Services;
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
putstatic org.graalvm.compiler.serviceprovider.GraalServices.JVMCI_MODULE:Ljava/lang/Module;
11: getstatic org.graalvm.compiler.serviceprovider.GraalServices.$assertionsDisabled:Z
ifne 12
getstatic org.graalvm.compiler.serviceprovider.GraalServices.JVMCI_MODULE:Ljava/lang/Module;
invokevirtual java.lang.Module.getPackages:()Ljava/util/Set;
ldc "jdk.vm.ci.runtime"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
12: StackMap locals:
StackMap stack:
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putstatic org.graalvm.compiler.serviceprovider.GraalServices.globalTimeStamp:Ljava/util/concurrent/atomic/AtomicLong;
return
LocalVariableTable:
Start End Slot Name Signature
private static int getJavaSpecificationVersion();
descriptor: ()I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc "java.specification.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: aload 0
ldc "1."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
2: aload 0
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 value Ljava/lang/String;
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 <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=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;)Ljava/util/ServiceLoader;
astore 1
start local 1 1: 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 2 0 service Ljava/lang/Class<TS;>;
1 2 1 iterable Ljava/lang/Iterable<TS;>;
Signature: <S:Ljava/lang/Object;>(Ljava/lang/Class<TS;>;)Ljava/lang/Iterable<TS;>;
MethodParameters:
Name Flags
service
static void openJVMCITo(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: getstatic org.graalvm.compiler.serviceprovider.GraalServices.JVMCI_MODULE:Ljava/lang/Module;
astore 1
start local 1 1: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 2
start local 2 2: aload 1
aload 2
if_acmpeq 9
3: aload 1
invokevirtual java.lang.Module.getPackages:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: java.lang.Class java.lang.Module java.lang.Module top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 5: aload 1
aload 3
aload 2
invokevirtual java.lang.Module.isOpen:(Ljava/lang/String;Ljava/lang/Module;)Z
ifne 8
6: invokestatic jdk.vm.ci.runtime.JVMCI.initialize:()V
7: aload 1
aload 3
aload 2
invokevirtual java.lang.Module.addOpens:(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/Module;
pop
end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: StackMap locals: java.lang.Class java.lang.Module java.lang.Module
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 other Ljava/lang/Class<*>;
1 10 1 jvmciModule Ljava/lang/Module;
2 10 2 otherModule Ljava/lang/Module;
5 8 3 pkg Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
other
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
public static java.io.InputStream getClassfileAsStream(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
aload 1
invokevirtual java.lang.Module.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c Ljava/lang/Class<*>;
1 2 1 classfilePath Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/Class<*>;)Ljava/io/InputStream;
MethodParameters:
Name Flags
c
public static boolean isToStringTrusted(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 1
start local 1 1: getstatic org.graalvm.compiler.serviceprovider.GraalServices.JVMCI_MODULE:Ljava/lang/Module;
astore 2
start local 2 2: getstatic org.graalvm.compiler.serviceprovider.GraalServices.$assertionsDisabled:Z
ifne 3
aload 2
invokevirtual java.lang.Module.getPackages:()Ljava/util/Set;
ldc "jdk.vm.ci.runtime"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: java.lang.Module java.lang.Module
StackMap stack:
aload 1
aload 2
if_acmpeq 4
aload 2
ldc "jdk.vm.ci.runtime"
aload 1
invokevirtual java.lang.Module.isOpen:(Ljava/lang/String;Ljava/lang/Module;)Z
ifeq 5
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 c Ljava/lang/Class<*>;
1 6 1 module Ljava/lang/Module;
2 6 2 jvmciModule Ljava/lang/Module;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
c
public static java.lang.String getExecutionID();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic java.lang.ProcessHandle.current:()Ljava/lang/ProcessHandle;
invokeinterface java.lang.ProcessHandle.pid:()J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static long getGlobalTimeStamp();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: getstatic org.graalvm.compiler.serviceprovider.GraalServices.globalTimeStamp:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lconst_0
lcmp
ifne 2
1: getstatic org.graalvm.compiler.serviceprovider.GraalServices.globalTimeStamp:Ljava/util/concurrent/atomic/AtomicLong;
lconst_0
invokestatic java.lang.System.currentTimeMillis:()J
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
pop
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.serviceprovider.GraalServices.globalTimeStamp:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lreturn
LocalVariableTable:
Start End Slot Name Signature
public static long getThreadAllocatedBytes(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic org.graalvm.compiler.serviceprovider.JMXService.instance:Lorg/graalvm/compiler/serviceprovider/JMXService;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
3: StackMap locals: org.graalvm.compiler.serviceprovider.JMXService
StackMap stack:
aload 2
lload 0
invokevirtual org.graalvm.compiler.serviceprovider.JMXService.getThreadAllocatedBytes:(J)J
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 id J
1 4 2 jmx Lorg/graalvm/compiler/serviceprovider/JMXService;
MethodParameters:
Name Flags
id
public static long getCurrentThreadAllocatedBytes();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getId:()J
invokestatic org.graalvm.compiler.serviceprovider.GraalServices.getThreadAllocatedBytes:(J)J
lreturn
LocalVariableTable:
Start End Slot Name Signature
public static long getCurrentThreadCpuTime();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic org.graalvm.compiler.serviceprovider.JMXService.instance:Lorg/graalvm/compiler/serviceprovider/JMXService;
astore 0
start local 0 1: aload 0
ifnonnull 3
2: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
3: StackMap locals: org.graalvm.compiler.serviceprovider.JMXService
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.serviceprovider.JMXService.getCurrentThreadCpuTime:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 jmx Lorg/graalvm/compiler/serviceprovider/JMXService;
public static boolean isThreadAllocatedMemorySupported();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: getstatic org.graalvm.compiler.serviceprovider.JMXService.instance:Lorg/graalvm/compiler/serviceprovider/JMXService;
astore 0
start local 0 1: aload 0
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: org.graalvm.compiler.serviceprovider.JMXService
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.serviceprovider.JMXService.isThreadAllocatedMemorySupported:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 jmx Lorg/graalvm/compiler/serviceprovider/JMXService;
public static boolean isCurrentThreadCpuTimeSupported();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: getstatic org.graalvm.compiler.serviceprovider.JMXService.instance:Lorg/graalvm/compiler/serviceprovider/JMXService;
astore 0
start local 0 1: aload 0
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: org.graalvm.compiler.serviceprovider.JMXService
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.serviceprovider.JMXService.isCurrentThreadCpuTimeSupported:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 jmx Lorg/graalvm/compiler/serviceprovider/JMXService;
public static java.util.List<java.lang.String> getInputArguments();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: getstatic org.graalvm.compiler.serviceprovider.JMXService.instance:Lorg/graalvm/compiler/serviceprovider/JMXService;
astore 0
start local 0 1: aload 0
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: org.graalvm.compiler.serviceprovider.JMXService
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.serviceprovider.JMXService.getInputArguments:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 jmx Lorg/graalvm/compiler/serviceprovider/JMXService;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
}
SourceFile: "GraalServices.java"
NestMembers:
org.graalvm.compiler.serviceprovider.GraalServices$1 org.graalvm.compiler.serviceprovider.GraalServices$1$1
InnerClasses:
org.graalvm.compiler.serviceprovider.GraalServices$1