final class com.oracle.truffle.polyglot.PolyglotThreadInfo
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.polyglot.PolyglotThreadInfo
super_class: java.lang.Object
{
static final com.oracle.truffle.polyglot.PolyglotThreadInfo NULL;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final java.lang.Object NULL_CLASS_LOADER;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final com.oracle.truffle.polyglot.PolyglotContextImpl context;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.utilities.TruffleWeakReference<java.lang.Thread> thread;
descriptor: Lcom/oracle/truffle/api/utilities/TruffleWeakReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/oracle/truffle/api/utilities/TruffleWeakReference<Ljava/lang/Thread;>;
private volatile int enteredCount;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
final java.util.LinkedList<com.oracle.truffle.polyglot.PolyglotContextImpl> explicitContextStack;
descriptor: Ljava/util/LinkedList;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/LinkedList<Lcom/oracle/truffle/polyglot/PolyglotContextImpl;>;
volatile boolean cancelled;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
private java.lang.Object originalContextClassLoader;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private com.oracle.truffle.polyglot.PolyglotThreadInfo$ClassLoaderEntry prevContextClassLoader;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
flags: (0x0002) ACC_PRIVATE
private com.oracle.truffle.polyglot.PolyglotThreadInfo$SpecializationStatisticsEntry executionStatisticsEntry;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;
flags: (0x0002) ACC_PRIVATE
private volatile java.lang.Object[] contextThreadLocals;
descriptor: [Ljava/lang/Object;
flags: (0x0042) ACC_PRIVATE, 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=4, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
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.PolyglotThreadInfo.$assertionsDisabled:Z
3: new com.oracle.truffle.polyglot.PolyglotThreadInfo
dup
aconst_null
aconst_null
invokespecial com.oracle.truffle.polyglot.PolyglotThreadInfo.<init>:(Lcom/oracle/truffle/polyglot/PolyglotContextImpl;Ljava/lang/Thread;)V
putstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.NULL:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
4: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.NULL_CLASS_LOADER:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.oracle.truffle.polyglot.PolyglotContextImpl, java.lang.Thread);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotContextImpl;Ljava/lang/Thread;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.explicitContextStack:Ljava/util/LinkedList;
2: aload 0
getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.NULL_CLASS_LOADER:Ljava/lang/Object;
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
3: aload 0
aload 1
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
4: aload 0
new com.oracle.truffle.api.utilities.TruffleWeakReference
dup
aload 2
invokespecial com.oracle.truffle.api.utilities.TruffleWeakReference.<init>:(Ljava/lang/Object;)V
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.thread:Lcom/oracle/truffle/api/utilities/TruffleWeakReference;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
0 6 1 context Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
0 6 2 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
context
thread
java.lang.Thread getThread();
descriptor: ()Ljava/lang/Thread;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.thread:Lcom/oracle/truffle/api/utilities/TruffleWeakReference;
invokevirtual com.oracle.truffle.api.utilities.TruffleWeakReference.get:()Ljava/lang/Object;
checkcast java.lang.Thread
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
public java.lang.Object[] getContextThreadLocals();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)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.PolyglotThreadInfo.contextThreadLocals:[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
public void setContextThreadLocals(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.contextThreadLocals:[Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
0 3 1 contextThreadLocals [Ljava/lang/Object;
MethodParameters:
Name Flags
contextThreadLocals
boolean isCurrent();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
void enter(com.oracle.truffle.polyglot.PolyglotEngineImpl, com.oracle.truffle.polyglot.PolyglotContextImpl);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Lcom/oracle/truffle/polyglot/PolyglotContextImpl;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.$assertionsDisabled:Z
ifne 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
iconst_1
iadd
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
2: ldc 1.0E-4
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.closed:Z
invokestatic com.oracle.truffle.api.CompilerDirectives.injectBranchProbability:(DZ)Z
ifeq 7
3: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreter:()V
4: aload 0
dup
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
iconst_1
isub
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
5: aload 2
invokevirtual com.oracle.truffle.polyglot.PolyglotContextImpl.checkClosed:()V
6: getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.$assertionsDisabled:Z
ifne 7
new java.lang.AssertionError
dup
ldc "checkClosed must throw"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.customHostClassLoader:Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifne 9
8: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.setContextClassLoader:()V
9: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.creatorTruffleContext:Lcom/oracle/truffle/api/TruffleContext;
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.notifyEnter:(Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleContext;)V
10: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 3
start local 3 12: aload 0
dup
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
iconst_1
isub
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
13: aload 3
athrow
end local 3 14: StackMap locals:
StackMap stack:
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.specializationStatistics:Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
ifnull 16
15: aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.specializationStatistics:Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
invokevirtual com.oracle.truffle.api.dsl.SpecializationStatistics.enter:()Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
pop
16: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
0 17 1 engine Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
0 17 2 profiledContext Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
12 14 3 t Ljava/lang/Throwable;
Exception table:
from to target type
9 10 11 Class java.lang.Throwable
RuntimeInvisibleAnnotations:
com.oracle.truffle.polyglot.SuppressFBWarnings(value = {"VO_VOLATILE_INCREMENT"})
MethodParameters:
Name Flags
engine
profiledContext
boolean isPolyglotThread(com.oracle.truffle.polyglot.PolyglotContextImpl);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotContextImpl;)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
instanceof com.oracle.truffle.polyglot.PolyglotThread
ifeq 2
1: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
checkcast com.oracle.truffle.polyglot.PolyglotThread
aload 1
invokevirtual com.oracle.truffle.polyglot.PolyglotThread.isOwner:(Lcom/oracle/truffle/polyglot/PolyglotContextImpl;)Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
0 3 1 c Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
MethodParameters:
Name Flags
c
void leave(com.oracle.truffle.polyglot.PolyglotEngineImpl, com.oracle.truffle.polyglot.PolyglotContextImpl);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Lcom/oracle/truffle/polyglot/PolyglotContextImpl;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.$assertionsDisabled:Z
ifne 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.creatorTruffleContext:Lcom/oracle/truffle/api/TruffleContext;
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.notifyLeave:(Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleContext;)V
2: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 3
4: aload 0
dup
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
iconst_1
isub
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
5: aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.customHostClassLoader:Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifne 7
6: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.restoreContextClassLoader:()V
7: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.specializationStatistics:Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
ifnull 9
8: aload 0
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.specializationStatistics:Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.leaveStatistics:(Lcom/oracle/truffle/api/dsl/SpecializationStatistics;)V
9: StackMap locals:
StackMap stack:
aload 3
athrow
10: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
iconst_1
isub
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
11: aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.customHostClassLoader:Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifne 13
12: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.restoreContextClassLoader:()V
13: StackMap locals:
StackMap stack:
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.specializationStatistics:Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
ifnull 15
14: aload 0
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.specializationStatistics:Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.leaveStatistics:(Lcom/oracle/truffle/api/dsl/SpecializationStatistics;)V
15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
0 16 1 engine Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
0 16 2 profiledContext Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
Exception table:
from to target type
1 3 3 any
RuntimeInvisibleAnnotations:
com.oracle.truffle.polyglot.SuppressFBWarnings(value = {"VO_VOLATILE_INCREMENT"})
MethodParameters:
Name Flags
engine
profiledContext
private void enterStatistics(com.oracle.truffle.api.dsl.SpecializationStatistics);
descriptor: (Lcom/oracle/truffle/api/dsl/SpecializationStatistics;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.oracle.truffle.api.dsl.SpecializationStatistics.enter:()Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
astore 2
start local 2 1: aload 2
ifnonnull 2
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.executionStatisticsEntry:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;
ifnull 3
2: StackMap locals: com.oracle.truffle.api.dsl.SpecializationStatistics
StackMap stack:
aload 0
new com.oracle.truffle.polyglot.PolyglotThreadInfo$SpecializationStatisticsEntry
dup
aload 2
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.executionStatisticsEntry:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;
invokespecial com.oracle.truffle.polyglot.PolyglotThreadInfo$SpecializationStatisticsEntry.<init>:(Lcom/oracle/truffle/api/dsl/SpecializationStatistics;Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;)V
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.executionStatisticsEntry:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
0 4 1 statistics Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
1 4 2 prev Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
statistics
private void leaveStatistics(com.oracle.truffle.api.dsl.SpecializationStatistics);
descriptor: (Lcom/oracle/truffle/api/dsl/SpecializationStatistics;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.executionStatisticsEntry:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;
astore 2
start local 2 1: aload 2
ifnonnull 4
2: aload 1
aconst_null
invokevirtual com.oracle.truffle.api.dsl.SpecializationStatistics.leave:(Lcom/oracle/truffle/api/dsl/SpecializationStatistics;)V
3: goto 6
4: StackMap locals: com.oracle.truffle.polyglot.PolyglotThreadInfo$SpecializationStatisticsEntry
StackMap stack:
aload 1
aload 2
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo$SpecializationStatisticsEntry.statistics:Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
invokevirtual com.oracle.truffle.api.dsl.SpecializationStatistics.leave:(Lcom/oracle/truffle/api/dsl/SpecializationStatistics;)V
5: aload 0
aload 2
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo$SpecializationStatisticsEntry.next:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.executionStatisticsEntry:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
0 7 1 statistics Lcom/oracle/truffle/api/dsl/SpecializationStatistics;
1 7 2 entry Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$SpecializationStatisticsEntry;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
statistics
boolean isLastActive();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
ifnull 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
iconst_1
if_icmpne 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.cancelled:Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
boolean isActiveNotCancelled();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
ifnull 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
ifle 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.cancelled:Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
boolean isActive();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
ifnull 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "[thread="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", enteredCount="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.enteredCount:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", cancelled="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.cancelled:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
private void setContextClassLoader();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.config:Lcom/oracle/truffle/polyglot/PolyglotContextConfig;
getfield com.oracle.truffle.polyglot.PolyglotContextConfig.hostClassLoader:Ljava/lang/ClassLoader;
astore 1
start local 1 1: aload 1
ifnull 9
2: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
astore 2
start local 2 3: aload 2
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 3
start local 3 4: getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.$assertionsDisabled:Z
ifne 5
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.NULL_CLASS_LOADER:Ljava/lang/Object;
if_acmpne 5
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.prevContextClassLoader:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
ifnull 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: java.lang.ClassLoader java.lang.Thread java.lang.ClassLoader
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.NULL_CLASS_LOADER:Ljava/lang/Object;
if_acmpeq 7
6: aload 0
new com.oracle.truffle.polyglot.PolyglotThreadInfo$ClassLoaderEntry
dup
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
checkcast java.lang.ClassLoader
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.prevContextClassLoader:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
invokespecial com.oracle.truffle.polyglot.PolyglotThreadInfo$ClassLoaderEntry.<init>:(Ljava/lang/ClassLoader;Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;)V
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.prevContextClassLoader:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
7: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
8: aload 2
aload 1
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
end local 3 end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
1 10 1 hostClassLoader Ljava/lang/ClassLoader;
3 9 2 t Ljava/lang/Thread;
4 9 3 original Ljava/lang/ClassLoader;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
private void restoreContextClassLoader();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.NULL_CLASS_LOADER:Ljava/lang/Object;
if_acmpeq 9
1: getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.$assertionsDisabled:Z
ifne 2
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.config:Lcom/oracle/truffle/polyglot/PolyglotContextConfig;
getfield com.oracle.truffle.polyglot.PolyglotContextConfig.hostClassLoader:Ljava/lang/ClassLoader;
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotThreadInfo.getThread:()Ljava/lang/Thread;
astore 1
start local 1 3: aload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
checkcast java.lang.ClassLoader
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
4: aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.prevContextClassLoader:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
ifnull 8
5: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.prevContextClassLoader:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo$ClassLoaderEntry.classLoader:Ljava/lang/ClassLoader;
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
6: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo.prevContextClassLoader:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
getfield com.oracle.truffle.polyglot.PolyglotThreadInfo$ClassLoaderEntry.next:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.prevContextClassLoader:Lcom/oracle/truffle/polyglot/PolyglotThreadInfo$ClassLoaderEntry;
7: goto 9
8: StackMap locals: java.lang.Thread
StackMap stack:
aload 0
getstatic com.oracle.truffle.polyglot.PolyglotThreadInfo.NULL_CLASS_LOADER:Ljava/lang/Object;
putfield com.oracle.truffle.polyglot.PolyglotThreadInfo.originalContextClassLoader:Ljava/lang/Object;
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/polyglot/PolyglotThreadInfo;
3 9 1 t Ljava/lang/Thread;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
}
SourceFile: "PolyglotThreadInfo.java"
NestMembers:
com.oracle.truffle.polyglot.PolyglotThreadInfo$ClassLoaderEntry com.oracle.truffle.polyglot.PolyglotThreadInfo$SpecializationStatisticsEntry
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public abstract InstrumentSupport = com.oracle.truffle.api.impl.Accessor$InstrumentSupport of com.oracle.truffle.api.impl.Accessor
private final ClassLoaderEntry = com.oracle.truffle.polyglot.PolyglotThreadInfo$ClassLoaderEntry of com.oracle.truffle.polyglot.PolyglotThreadInfo
private final SpecializationStatisticsEntry = com.oracle.truffle.polyglot.PolyglotThreadInfo$SpecializationStatisticsEntry of com.oracle.truffle.polyglot.PolyglotThreadInfo