final class com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext extends com.oracle.truffle.polyglot.PolyglotReferences$AbstractContextReference
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext
super_class: com.oracle.truffle.polyglot.PolyglotReferences$AbstractContextReference
{
private final com.oracle.truffle.polyglot.PolyglotLanguage language;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotLanguage;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.lang.ref.WeakReference<java.lang.Object> languageContextImpl;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$CompilationFinal()
private volatile java.lang.ref.WeakReference<com.oracle.truffle.polyglot.PolyglotLanguageContext> languageContext;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/lang/ref/WeakReference<Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;>;
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 Lcom/oracle/truffle/polyglot/PolyglotReferences;
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 com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.oracle.truffle.polyglot.PolyglotLanguage);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotLanguage;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.oracle.truffle.polyglot.PolyglotReferences$AbstractContextReference.<init>:()V
1: aload 0
aload 1
putfield com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.language:Lcom/oracle/truffle/polyglot/PolyglotLanguage;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotReferences$WeakSingleContext;
0 3 1 language Lcom/oracle/truffle/polyglot/PolyglotLanguage;
MethodParameters:
Name Flags
language
public java.lang.Object get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: getstatic com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.language:Lcom/oracle/truffle/polyglot/PolyglotLanguage;
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguage.assertCorrectEngine:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.languageContextImpl:Ljava/lang/ref/WeakReference;
astore 1
start local 1 2: aload 1
ifnonnull 5
3: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
4: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.language:Lcom/oracle/truffle/polyglot/PolyglotLanguage;
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguage.getCurrentLanguageContext:()Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
invokevirtual com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.initialize:(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;)Ljava/lang/ref/WeakReference;
astore 1
5: StackMap locals: java.lang.ref.WeakReference
StackMap stack:
aload 1
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
astore 2
start local 2 6: getstatic com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.$assertionsDisabled:Z
ifne 7
aload 2
invokestatic com.oracle.truffle.polyglot.PolyglotReferences.checkContextCollected:(Ljava/lang/Object;)Z
ifne 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: java.lang.Object
StackMap stack:
getstatic com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.$assertionsDisabled:Z
ifne 8
aload 2
aload 0
getfield com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.languageContext:Ljava/lang/ref/WeakReference;
invokestatic com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.assertDirectContextAccess:(Ljava/lang/Object;Ljava/lang/ref/WeakReference;)Z
ifne 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/polyglot/PolyglotReferences$WeakSingleContext;
2 9 1 ref Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;
6 9 2 context Ljava/lang/Object;
private java.lang.ref.WeakReference<java.lang.Object> initialize(com.oracle.truffle.polyglot.PolyglotLanguageContext);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;)Ljava/lang/ref/WeakReference;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.$assertionsDisabled:Z
ifne 1
aload 0
aload 1
invokevirtual com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.setLanguageContext:(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
new java.lang.ref.WeakReference
dup
aload 1
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguageContext.getContextImpl:()Ljava/lang/Object;
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
dup
astore 2
start local 2 2: putfield com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.languageContextImpl:Ljava/lang/ref/WeakReference;
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/polyglot/PolyglotReferences$WeakSingleContext;
0 4 1 langContext Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
2 4 2 ref Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;
Signature: (Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;)Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;
MethodParameters:
Name Flags
langContext
private static boolean assertDirectContextAccess(, java.lang.ref.WeakReference<com.oracle.truffle.polyglot.PolyglotLanguageContext>);
descriptor: (Ljava/lang/Object;Ljava/lang/ref/WeakReference;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast com.oracle.truffle.polyglot.PolyglotLanguageContext
astore 2
start local 2 3: aload 2
ifnonnull 5
4: aconst_null
invokestatic com.oracle.truffle.polyglot.PolyglotReferences.invalidSharingError:(Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;)Ljava/lang/AssertionError;
athrow
5: StackMap locals: com.oracle.truffle.polyglot.PolyglotLanguageContext
StackMap stack:
aload 2
aload 0
invokestatic com.oracle.truffle.polyglot.PolyglotReferences.assertDirectContextAccess:(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 seenContext Ljava/lang/Object;
0 6 1 contextRef Ljava/lang/ref/WeakReference<Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;>;
3 6 2 context Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
Signature: (Ljava/lang/Object;Ljava/lang/ref/WeakReference<Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;>;)Z
MethodParameters:
Name Flags
seenContext
contextRef
private boolean setLanguageContext(com.oracle.truffle.polyglot.PolyglotLanguageContext);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext.languageContext:Ljava/lang/ref/WeakReference;
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotReferences$WeakSingleContext;
0 2 1 langContext Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
MethodParameters:
Name Flags
langContext
}
SourceFile: "PolyglotReferences.java"
NestHost: com.oracle.truffle.polyglot.PolyglotReferences
InnerClasses:
public abstract CompilationFinal = com.oracle.truffle.api.CompilerDirectives$CompilationFinal of com.oracle.truffle.api.CompilerDirectives
abstract AbstractContextReference = com.oracle.truffle.polyglot.PolyglotReferences$AbstractContextReference of com.oracle.truffle.polyglot.PolyglotReferences
private final WeakSingleContext = com.oracle.truffle.polyglot.PolyglotReferences$WeakSingleContext of com.oracle.truffle.polyglot.PolyglotReferences