class com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread extends java.lang.Thread
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread
super_class: java.lang.Thread
{
private final org.graalvm.polyglot.Engine engine;
descriptor: Lorg/graalvm/polyglot/Engine;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.instrumentation.TruffleInstrument$Env env;
descriptor: Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean load;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<com.oracle.truffle.api.source.Source> sources;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/oracle/truffle/api/source/Source;>;
private java.util.concurrent.CountDownLatch executionLatch;
descriptor: Ljava/util/concurrent/CountDownLatch;
flags: (0x0002) ACC_PRIVATE
final com.oracle.truffle.api.instrumentation.test.DeadlockTest this$0;
descriptor: Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(com.oracle.truffle.api.instrumentation.test.DeadlockTest, org.graalvm.polyglot.Engine, com.oracle.truffle.api.instrumentation.TruffleInstrument$Env, boolean);
descriptor: (Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest;Lorg/graalvm/polyglot/Engine;Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;Z)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=5
start local 0 start local 2 start local 3 start local 4 0: aload 0
aload 1
putfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.this$0:Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest;
1: aload 0
ldc "Instrumentation Thread"
invokespecial java.lang.Thread.<init>:(Ljava/lang/String;)V
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.sources:Ljava/util/List;
3: aload 0
aload 2
putfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.engine:Lorg/graalvm/polyglot/Engine;
4: aload 0
aload 3
putfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
5: aload 0
iload 4
putfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.load:Z
6: return
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest$InstrumentationThread;
0 7 2 engine Lorg/graalvm/polyglot/Engine;
0 7 3 env Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
0 7 4 load Z
MethodParameters:
Name Flags
this$0 final
engine
env
load
void setExecutionLatch(java.util.concurrent.CountDownLatch);
descriptor: (Ljava/util/concurrent/CountDownLatch;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.executionLatch:Ljava/util/concurrent/CountDownLatch;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest$InstrumentationThread;
0 2 1 latch Ljava/util/concurrent/CountDownLatch;
MethodParameters:
Name Flags
latch
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 0
getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.engine:Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 3
start local 3 2: aload 3
ldc "truffle-locking-test-language"
ldc "getExecLatch"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
pop
3: aload 3
ifnull 9
aload 3
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 9
StackMap locals: com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
4: astore 1
aload 3
ifnull 5
aload 3
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 3 StackMap locals:
StackMap stack:
5: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 2
aload 1
ifnonnull 7
aload 2
astore 1
goto 8
StackMap locals:
StackMap stack:
7: aload 1
aload 2
if_acmpeq 8
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
8: aload 1
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.executionLatch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
10: goto 12
StackMap locals:
StackMap stack: java.lang.InterruptedException
11: pop
12: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.load:Z
ifeq 20
13: aload 0
getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.api.instrumentation.SourceFilter.ANY:Lcom/oracle/truffle/api/instrumentation/SourceFilter;
new com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread$1
dup
aload 0
invokespecial com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread$1.<init>:(Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest$InstrumentationThread;)V
14: iconst_1
15: invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachLoadSourceListener:(Lcom/oracle/truffle/api/instrumentation/SourceFilter;Lcom/oracle/truffle/api/instrumentation/LoadSourceListener;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
16: aload 0
getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.api.instrumentation.SourceSectionFilter.ANY:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
invokedynamic onLoad()Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionListener;
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:
(Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;)V
com/oracle/truffle/api/instrumentation/test/DeadlockTest$InstrumentationThread.lambda$0(Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;)V (6)
(Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;)V
17: iconst_1
18: invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachLoadSourceSectionListener:(Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionListener;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
19: goto 24
20: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.api.instrumentation.SourceFilter.ANY:Lcom/oracle/truffle/api/instrumentation/SourceFilter;
new com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread$2
dup
aload 0
invokespecial com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread$2.<init>:(Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest$InstrumentationThread;)V
21: iconst_1
22: invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecuteSourceListener:(Lcom/oracle/truffle/api/instrumentation/SourceFilter;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceListener;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
23: aload 0
getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.api.instrumentation.SourceSectionFilter.ANY:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
invokedynamic create()Lcom/oracle/truffle/api/instrumentation/ExecutionEventNodeFactory;
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:
(Lcom/oracle/truffle/api/instrumentation/EventContext;)Lcom/oracle/truffle/api/instrumentation/ExecutionEventNode;
com/oracle/truffle/api/instrumentation/test/DeadlockTest$InstrumentationThread.lambda$1(Lcom/oracle/truffle/api/instrumentation/EventContext;)Lcom/oracle/truffle/api/instrumentation/ExecutionEventNode; (6)
(Lcom/oracle/truffle/api/instrumentation/EventContext;)Lcom/oracle/truffle/api/instrumentation/ExecutionEventNode;
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecutionEventFactory:(Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/ExecutionEventNodeFactory;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
24: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest$InstrumentationThread;
2 5 3 c Lorg/graalvm/polyglot/Context;
Exception table:
from to target type
2 3 4 any
1 6 6 any
9 10 11 Class java.lang.InterruptedException
private static void lambda$0(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent);
descriptor: (Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;
private static com.oracle.truffle.api.instrumentation.ExecutionEventNode lambda$1(com.oracle.truffle.api.instrumentation.EventContext);
descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;)Lcom/oracle/truffle/api/instrumentation/ExecutionEventNode;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lcom/oracle/truffle/api/instrumentation/EventContext;
}
SourceFile: "DeadlockTest.java"
NestHost: com.oracle.truffle.api.instrumentation.test.DeadlockTest
InnerClasses:
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
private InstrumentationThread = com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread of com.oracle.truffle.api.instrumentation.test.DeadlockTest
com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread$1
com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread$2
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context