public final class jdk.internal.vm.compiler.libgraal.LibGraalIsolate
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.vm.compiler.libgraal.LibGraalIsolate
super_class: java.lang.Object
{
final long address;
descriptor: J
flags: (0x0010) ACC_FINAL
private static final java.util.Map<java.lang.Long, jdk.internal.vm.compiler.libgraal.LibGraalIsolate> isolates;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Long;Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;>;
private final java.util.Map<java.lang.Class<?>, java.lang.Object> singletons;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<*>;Ljava/lang/Object;>;
private final java.util.Set<jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner> cleaners;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate$Cleaner;>;
private final java.lang.ref.ReferenceQueue<jdk.internal.vm.compiler.libgraal.LibGraalObject> cleanersQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljdk/internal/vm/compiler/libgraal/LibGraalObject;>;
private boolean destroyed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
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 Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
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 jdk.internal.vm.compiler.libgraal.LibGraalIsolate.$assertionsDisabled:Z
3: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic jdk.internal.vm.compiler.libgraal.LibGraalIsolate.isolates:Ljava/util/Map;
return
LocalVariableTable:
Start End Slot Name Signature
static synchronized jdk.internal.vm.compiler.libgraal.LibGraalIsolate forAddress(long);
descriptor: (J)Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic jdk.internal.vm.compiler.libgraal.LibGraalIsolate.isolates:Ljava/util/Map;
lload 0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/internal/vm/compiler/libgraal/LibGraalIsolate.lambda$0(Ljava/lang/Long;)Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate; (6)
(Ljava/lang/Long;)Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
invokeinterface java.util.Map.computeIfAbsent:(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
checkcast jdk.internal.vm.compiler.libgraal.LibGraalIsolate
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 isolateAddress J
MethodParameters:
Name Flags
isolateAddress
private void <init>(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.singletons:Ljava/util/Map;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
invokestatic java.util.Collections.newSetFromMap:(Ljava/util/Map;)Ljava/util/Set;
putfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.cleaners:Ljava/util/Set;
3: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.cleanersQueue:Ljava/lang/ref/ReferenceQueue;
4: aload 0
lload 1
putfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.address:J
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
0 6 1 address J
MethodParameters:
Name Flags
address
public static jdk.internal.vm.compiler.libgraal.LibGraalIsolate current();
descriptor: ()Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.vm.compiler.libgraal.LibGraalScope.current:()Ljdk/internal/vm/compiler/libgraal/LibGraalScope;
invokevirtual jdk.internal.vm.compiler.libgraal.LibGraalScope.getIsolate:()Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
areturn
LocalVariableTable:
Start End Slot Name Signature
public synchronized <T> T getSingleton(java.lang.Class<T>, java.util.function.Supplier<T>);
descriptor: (Ljava/lang/Class;Ljava/util/function/Supplier;)Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.singletons:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 2
1: aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.singletons:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.singletons:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
0 3 1 key Ljava/lang/Class<TT;>;
0 3 2 supplier Ljava/util/function/Supplier<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Ljava/util/function/Supplier<TT;>;)TT;
MethodParameters:
Name Flags
key
supplier
void register(jdk.internal.vm.compiler.libgraal.LibGraalObject, long);
descriptor: (Ljdk/internal/vm/compiler/libgraal/LibGraalObject;J)V
flags: (0x0000)
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.internal.vm.compiler.libgraal.LibGraalIsolate.cleanHandles:()V
1: new jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner
dup
aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.cleanersQueue:Ljava/lang/ref/ReferenceQueue;
aload 1
lload 2
invokespecial jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner.<init>:(Ljava/lang/ref/ReferenceQueue;Ljdk/internal/vm/compiler/libgraal/LibGraalObject;J)V
astore 4
start local 4 2: aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.cleaners:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
0 4 1 obj Ljdk/internal/vm/compiler/libgraal/LibGraalObject;
0 4 2 handle J
2 4 4 cref Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate$Cleaner;
MethodParameters:
Name Flags
obj
handle
private void cleanHandles();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=2, args_size=1
start local 0 0: goto 4
start local 1 1: StackMap locals: jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner
StackMap stack:
aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.cleaners:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
2: aload 1
invokevirtual jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner.clean:()Z
ifne 4
3: new java.lang.Exception
dup
ldc "Error releasing handle %d in isolate 0x%x"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner.handle:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.address:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintStream;)V
end local 1 4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.cleanersQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner
dup
astore 1
start local 1 5: ifnonnull 1
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
1 4 1 cleaner Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate$Cleaner;
5 7 1 cleaner Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate$Cleaner;
static synchronized void remove(jdk.internal.vm.compiler.libgraal.LibGraalIsolate);
descriptor: (Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;)V
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.destroyed:Z
1: getstatic jdk.internal.vm.compiler.libgraal.LibGraalIsolate.isolates:Ljava/util/Map;
aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.address:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.vm.compiler.libgraal.LibGraalIsolate
astore 1
start local 1 2: getstatic jdk.internal.vm.compiler.libgraal.LibGraalIsolate.$assertionsDisabled:Z
ifne 3
aload 1
aload 0
if_acmpeq 3
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "isolate already removed or overwritten: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals: jdk.internal.vm.compiler.libgraal.LibGraalIsolate
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 isolate Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
2 4 1 removed Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
MethodParameters:
Name Flags
isolate
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: ldc "%s[0x%x]"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.address:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
public boolean isValid();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.vm.compiler.libgraal.LibGraalIsolate.destroyed:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
private static jdk.internal.vm.compiler.libgraal.LibGraalIsolate lambda$0(java.lang.Long);
descriptor: (Ljava/lang/Long;)Ljdk/internal/vm/compiler/libgraal/LibGraalIsolate;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new jdk.internal.vm.compiler.libgraal.LibGraalIsolate
dup
aload 0
invokevirtual java.lang.Long.longValue:()J
invokespecial jdk.internal.vm.compiler.libgraal.LibGraalIsolate.<init>:(J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a Ljava/lang/Long;
}
SourceFile: "LibGraalIsolate.java"
NestMembers:
jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private final Cleaner = jdk.internal.vm.compiler.libgraal.LibGraalIsolate$Cleaner of jdk.internal.vm.compiler.libgraal.LibGraalIsolate