public class com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest
super_class: java.lang.Object
{
private org.graalvm.polyglot.Context context;
descriptor: Lorg/graalvm/polyglot/Context;
flags: (0x0002) ACC_PRIVATE
private com.oracle.truffle.api.instrumentation.TruffleInstrument$Env instrumentEnv;
descriptor: Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
public void setup();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "instrumentation-test-language"
aastore
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
putfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
1: aload 0
aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.Engine.getInstruments:()Ljava/util/Map;
ldc "InstrumentationUpdateInstrument"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Instrument
ldc Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual org.graalvm.polyglot.Instrument.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.instrumentation.TruffleInstrument$Env
putfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
RuntimeVisibleAnnotations:
org.junit.Before()
public void teardown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
ifnull 2
1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
RuntimeVisibleAnnotations:
org.junit.After()
public void testRetiredTreeStillReachable();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_EXPRESSION(LOOP(3, STATEMENT(EXPRESSION))))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: new com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener
dup
iconst_1
invokespecial com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.<init>:(Z)V
astore 2
start local 2 2: aload 0
aload 2
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
astore 3
start local 3 3: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.evalInNewThread:(Lorg/graalvm/polyglot/Source;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;)Ljava/lang/Thread;
astore 4
start local 4 4: aload 2
iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "$START"
aastore
dup
iconst_1
ldc "+S"
aastore
dup
iconst_2
ldc "+S"
aastore
dup
iconst_3
ldc "-S"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
5: aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.waitUntilStopped:()V
6: aload 0
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:()Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 5
start local 5 7: aload 2
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "+S"
aastore
dup
iconst_1
ldc "-S"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
8: aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.waitUntilStopped:()V
9: aload 0
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:()Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 6
start local 6 10: aload 2
iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "+S"
aastore
dup
iconst_1
ldc "-S"
aastore
dup
iconst_2
ldc "-S"
aastore
dup
iconst_3
ldc "$END"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
11: aload 4
invokevirtual java.lang.Thread.join:()V
12: aload 3
invokevirtual com.oracle.truffle.api.instrumentation.EventBinding.dispose:()V
13: aload 0
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:()Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 7
start local 7 14: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
15: ldc "+E-E-S+S+E-E-S-S+R+S+E-E+L+S+E-E-S+S+E-E-S+S+E-E-S-L-S-R"
aload 5
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
16: ldc "+E-E-S-S+R+S+E-E+L+S+E-E-S+S+E-E-S+S+E-E-S-L-S-R"
aload 6
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
17: ldc "+R+S+E-E+L+S+E-E-S+S+E-E-S+S+E-E-S-L-S-R"
aload 7
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
18: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 19 1 source Lorg/graalvm/polyglot/Source;
2 19 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
3 19 3 binding Lcom/oracle/truffle/api/instrumentation/EventBinding<Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;>;
4 19 4 t Ljava/lang/Thread;
7 19 5 listener2 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
10 19 6 listener3 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
14 19 7 listener4 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
Exceptions:
throws java.lang.InterruptedException
RuntimeVisibleAnnotations:
org.junit.Test()
private com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener attachRecordingListener();
descriptor: ()Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: new com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener
dup
invokespecial com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.<init>:()V
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.instrumentEnv: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;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecutionEventListener:(Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 3 1 listener Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
private com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener attachRecordingListener(java.lang.Class<?>[]);
descriptor: ([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Z[Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
0 1 1 tags [Ljava/lang/Class;
Signature: ([Ljava/lang/Class<*>;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
MethodParameters:
Name Flags
tags
private com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener attachRecordingListener(boolean, java.lang.Class<?>[]);
descriptor: (Z[Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener
dup
iload 1
invokespecial com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.<init>:(Z)V
astore 3
start local 3 1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
invokestatic com.oracle.truffle.api.instrumentation.SourceSectionFilter.newBuilder:()Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter$Builder;
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder.tagIs:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder.build:()Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
aload 3
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecutionEventListener:(Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
0 3 1 stepping Z
0 3 2 tags [Ljava/lang/Class;
1 3 3 listener Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
Signature: (Z[Ljava/lang/Class<*>;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
MethodParameters:
Name Flags
stepping
tags
private com.oracle.truffle.api.instrumentation.EventBinding<com.oracle.truffle.api.instrumentation.ExecutionEventListener> attachRecordingListener(com.oracle.truffle.api.instrumentation.ExecutionEventListener, java.lang.Class<?>);
descriptor: (Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
invokestatic com.oracle.truffle.api.instrumentation.SourceSectionFilter.newBuilder:()Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter$Builder;
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 2
aastore
invokevirtual com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder.tagIs:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder.build:()Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecutionEventListener:(Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
0 1 1 listener Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;
0 1 2 tags Ljava/lang/Class<*>;
Signature: (Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;Ljava/lang/Class<*>;)Lcom/oracle/truffle/api/instrumentation/EventBinding<Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;>;
MethodParameters:
Name Flags
listener
tags
private java.lang.Thread evalInNewThread(org.graalvm.polyglot.Source, com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener);
descriptor: (Lorg/graalvm/polyglot/Source;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;)Ljava/lang/Thread;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.Thread
dup
aload 0
aload 2
aload 1
invokedynamic run(Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;Lorg/graalvm/polyglot/Source;)Ljava/lang/Runnable;
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:
()V
com/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest.lambda$0(Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;Lorg/graalvm/polyglot/Source;)V (7)
()V
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 3
start local 3 1: aload 3
invokevirtual java.lang.Thread.start:()V
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
0 3 1 source Lorg/graalvm/polyglot/Source;
0 3 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
1 3 3 t Ljava/lang/Thread;
MethodParameters:
Name Flags
source
listener1
public void testForcedCreationOfWrappers();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_EXPRESSION(LOOP(0, STATEMENT), LOOP(3, STATEMENT(EXPRESSION))))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
iconst_1
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTestLanguage$LoopTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Z[Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 2
start local 2 2: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.evalInNewThread:(Lorg/graalvm/polyglot/Source;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;)Ljava/lang/Thread;
astore 3
start local 3 3: aload 2
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "$START"
aastore
dup
iconst_1
ldc "+L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
4: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$ExpressionTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 4
start local 4 5: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 5
start local 5 6: aload 2
iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "-L"
aastore
dup
iconst_1
ldc "+L"
aastore
dup
iconst_2
ldc "-L"
aastore
dup
iconst_3
ldc "$END"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
7: aload 3
invokevirtual java.lang.Thread.join:()V
8: ldc "+E-E+E-E+E-E"
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
9: ldc "+S-S+S-S+S-S"
aload 5
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 11 1 source Lorg/graalvm/polyglot/Source;
2 11 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
3 11 3 t Ljava/lang/Thread;
5 11 4 listener2 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
6 11 5 listener3 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
Exceptions:
throws java.lang.InterruptedException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testProbesWithRetiredNodeReferencesAreNotDisposed();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_EXPRESSION(LOOP(0, STATEMENT), LOOP(3, STATEMENT(EXPRESSION))))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
iconst_1
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTestLanguage$LoopTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Z[Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 2
start local 2 2: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.evalInNewThread:(Lorg/graalvm/polyglot/Source;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;)Ljava/lang/Thread;
astore 3
start local 3 3: aload 2
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "$START"
aastore
dup
iconst_1
ldc "+L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
4: aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.disableSteppingWhileWaiting:()V
5: new com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener
dup
invokespecial com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.<init>:()V
astore 4
start local 4 6: aload 0
aload 4
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$ExpressionTag;
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
astore 5
start local 5 7: aload 5
invokevirtual com.oracle.truffle.api.instrumentation.EventBinding.dispose:()V
8: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
9: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 6
start local 6 10: aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "-L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
11: aload 3
invokevirtual java.lang.Thread.join:()V
12: ldc "+L+L-L+L-L-L+L-L"
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
13: ldc "+S-S+S-S+S-S"
aload 6
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 15 1 source Lorg/graalvm/polyglot/Source;
2 15 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
3 15 3 t Ljava/lang/Thread;
6 15 4 listener2 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
7 15 5 binding Lcom/oracle/truffle/api/instrumentation/EventBinding<Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;>;
10 15 6 listener3 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
Exceptions:
throws java.lang.InterruptedException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testRepeatedInstrumentationDoesNotChangeParentsInMaterializedTree();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_STMT_AND_EXPR(EXPRESSION(EXPRESSION)))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
2: new com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener
dup
invokespecial com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.<init>:()V
astore 2
start local 2 3: aload 0
aload 2
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
astore 3
start local 3 4: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
5: ldc "+S+S-S-S"
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: aload 3
invokevirtual com.oracle.truffle.api.instrumentation.EventBinding.dispose:()V
7: aload 0
iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
aastore
dup
iconst_1
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$ExpressionTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 4
start local 4 8: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
9: ldc "+S+S+E-E-S+E-E-S"
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 11 1 source Lorg/graalvm/polyglot/Source;
3 11 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
4 11 3 binding Lcom/oracle/truffle/api/instrumentation/EventBinding<Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;>;
8 11 4 listener2 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testRepeatedInstrumentationChangesParentsInMaterializedTreeIfSubtreesAreNotCloned();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_STMT_AND_EXPR_NC(EXPRESSION(EXPRESSION)))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
2: new com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener
dup
invokespecial com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.<init>:()V
astore 2
start local 2 3: aload 0
aload 2
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
astore 3
start local 3 4: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
5: ldc "+S+S-S-S"
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: aload 3
invokevirtual com.oracle.truffle.api.instrumentation.EventBinding.dispose:()V
7: aload 0
iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
aastore
dup
iconst_1
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$ExpressionTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 4
start local 4 8: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
9: ldc "+S+S+E-E-S-S"
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 11 1 source Lorg/graalvm/polyglot/Source;
3 11 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
4 11 3 binding Lcom/oracle/truffle/api/instrumentation/EventBinding<Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;>;
8 11 4 listener2 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testMultipleMaterializationNode();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_STMT_AND_EXPR_SEPARATELY(STATEMENT(EXPRESSION)))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:()Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 2
start local 2 2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
3: ldc "+R+S+S-S+E-E+S+E-E-S-S-R"
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 5 1 source Lorg/graalvm/polyglot/Source;
2 5 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testRetiredTreeStillReachableOnMultipleMaterializationOfTheSameNode();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_STMT_AND_EXPR_SEPARATELY(BLOCK, LOOP(0, STATEMENT), LOOP(3, STATEMENT(CONSTANT(42)))))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
iconst_1
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTestLanguage$LoopTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Z[Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 2
start local 2 2: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.evalInNewThread:(Lorg/graalvm/polyglot/Source;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;)Ljava/lang/Thread;
astore 3
start local 3 3: aload 2
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "$START"
aastore
dup
iconst_1
ldc "+L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
4: aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.disableSteppingWhileWaiting:()V
5: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
pop
6: aload 0
iconst_1
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTestLanguage$BlockTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Z[Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 4
start local 4 7: aload 0
aload 1
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.evalInNewThread:(Lorg/graalvm/polyglot/Source;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;)Ljava/lang/Thread;
astore 5
start local 5 8: aload 4
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "$START"
aastore
dup
iconst_1
ldc "+BL"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
9: aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.disableSteppingWhileWaiting:()V
10: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$ExpressionTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
pop
11: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTestLanguage$ConstantTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 6
start local 6 12: aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "-L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
13: aload 3
invokevirtual java.lang.Thread.join:()V
14: aload 4
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "-BL"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
15: aload 5
invokevirtual java.lang.Thread.join:()V
16: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
17: ldc "+C-C+C-C+C-C+C-C+C-C+C-C+C-C+C-C+C-C"
aload 6
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
18: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 19 1 source Lorg/graalvm/polyglot/Source;
2 19 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
3 19 3 t1 Ljava/lang/Thread;
7 19 4 listener2 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
8 19 5 t2 Ljava/lang/Thread;
12 19 6 listener5 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
Exceptions:
throws java.lang.InterruptedException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testRetiredTreeOfRetiredTreeStillReachable();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_STATEMENT(MATERIALIZE_CHILD_EXPRESSION(LOOP(0, STATEMENT), LOOP(3, STATEMENT(CONSTANT(42))))))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
iconst_1
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTestLanguage$LoopTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Z[Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 2
start local 2 2: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.evalInNewThread:(Lorg/graalvm/polyglot/Source;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;)Ljava/lang/Thread;
astore 3
start local 3 3: aload 2
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "$START"
aastore
dup
iconst_1
ldc "+L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
4: aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.disableSteppingWhileWaiting:()V
5: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$ExpressionTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
pop
6: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
pop
7: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTestLanguage$ConstantTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:([Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 4
start local 4 8: aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "-L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
9: aload 3
invokevirtual java.lang.Thread.join:()V
10: ldc "+C-C+C-C+C-C"
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
11: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 12 1 source Lorg/graalvm/polyglot/Source;
2 12 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
3 12 3 t1 Ljava/lang/Thread;
8 12 4 listener4 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
Exceptions:
throws java.lang.InterruptedException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testWrappersAreRemoved();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=17, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "ROOT(MATERIALIZE_CHILD_STATEMENT(LOOP(0, STATEMENT), LOOP(3, STATEMENT(CONSTANT(42)))))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: aload 0
iconst_1
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTestLanguage$LoopTag;
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Z[Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
astore 2
start local 2 2: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.evalInNewThread:(Lorg/graalvm/polyglot/Source;Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;)Ljava/lang/Thread;
astore 3
start local 3 3: aload 2
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "$START"
aastore
dup
iconst_1
ldc "+L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
4: aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.disableSteppingWhileWaiting:()V
5: new com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener
dup
iconst_0
iconst_1
invokespecial com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.<init>:(ZZ)V
astore 4
start local 4 6: aload 0
aload 4
ldc Lcom/oracle/truffle/api/instrumentation/StandardTags$StatementTag;
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.attachRecordingListener:(Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;Ljava/lang/Class;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
astore 5
start local 5 7: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
8: aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "-L"
aastore
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.go:([Ljava/lang/String;)V
9: aload 3
invokevirtual java.lang.Thread.join:()V
10: ldc "+S+S-S+S-S+S-S+S-S-S+S-S+S-S+S-S"
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
11: aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getEnteredNodes:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
com/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest.lambda$1(Lcom/oracle/truffle/api/nodes/Node;)Z (6)
(Lcom/oracle/truffle/api/nodes/Node;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
12: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
13: invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
astore 6
start local 6 14: lconst_1
aload 6
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
15: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 16: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 32
StackMap locals: com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest org.graalvm.polyglot.Source com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener java.lang.Thread com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener com.oracle.truffle.api.instrumentation.EventBinding java.util.List java.util.List top java.util.Iterator
StackMap stack:
17: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.truffle.api.nodes.Node
astore 8
start local 8 18: aload 8
invokevirtual com.oracle.truffle.api.nodes.Node.getParent:()Lcom/oracle/truffle/api/nodes/Node;
instanceof com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode
invokestatic org.junit.Assert.assertTrue:(Z)V
19: aload 8
invokevirtual com.oracle.truffle.api.nodes.Node.getParent:()Lcom/oracle/truffle/api/nodes/Node;
checkcast com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode
astore 10
start local 10 20: aload 10
invokeinterface com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode.getProbeNode:()Lcom/oracle/truffle/api/instrumentation/ProbeNode;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 11
start local 11 21: aload 11
ldc "retiredNodeReference"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 12
start local 12 22: aload 12
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
23: aload 12
aload 10
invokeinterface com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode.getProbeNode:()Lcom/oracle/truffle/api/instrumentation/ProbeNode;
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 13
start local 13 24: aload 13
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
25: aload 13
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 14
start local 14 26: aload 14
ldc "node"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 15
start local 15 27: aload 15
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
28: aload 15
aload 13
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 16
start local 16 29: aload 16
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
30: aload 16
instanceof java.lang.ref.WeakReference
invokestatic org.junit.Assert.assertTrue:(Z)V
31: aload 7
aload 16
checkcast java.lang.ref.WeakReference
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 8 32: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
33: aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.clearEnteredNodes:()V
34: aload 7
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 37
StackMap locals:
StackMap stack:
35: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
astore 8
start local 8 36: ldc "Retired node is was not collected!"
aload 8
invokestatic com.oracle.truffle.api.test.GCUtils.assertGc:(Ljava/lang/String;Ljava/lang/ref/Reference;)V
end local 8 37: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 35
38: aload 5
invokevirtual com.oracle.truffle.api.instrumentation.EventBinding.dispose:()V
39: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
40: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 43
StackMap locals:
StackMap stack:
41: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.truffle.api.nodes.Node
astore 8
start local 8 42: aload 8
invokevirtual com.oracle.truffle.api.nodes.Node.getParent:()Lcom/oracle/truffle/api/nodes/Node;
instanceof com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode
invokestatic org.junit.Assert.assertFalse:(Z)V
end local 8 43: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 41
44: ldc "+L+L-L+L-L-L+L-L+L-L+L-L"
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.getRecording:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
45: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
1 46 1 source Lorg/graalvm/polyglot/Source;
2 46 2 listener1 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
3 46 3 t1 Ljava/lang/Thread;
6 46 4 listener2 Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;
7 46 5 binding Lcom/oracle/truffle/api/instrumentation/EventBinding<Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;>;
14 46 6 enteredMaterializedStatementNodes Ljava/util/List<Lcom/oracle/truffle/api/nodes/Node;>;
16 46 7 retiredStatementNodes Ljava/util/List<Ljava/lang/ref/WeakReference<Lcom/oracle/truffle/api/nodes/Node;>;>;
18 32 8 enteredNode Lcom/oracle/truffle/api/nodes/Node;
20 32 10 wrapperNode Lcom/oracle/truffle/api/instrumentation/InstrumentableNode$WrapperNode;
21 32 11 probeNodeClass Ljava/lang/Class<*>;
22 32 12 retiredNodeReferenceField Ljava/lang/reflect/Field;
24 32 13 retiredNodeReference Ljava/lang/Object;
26 32 14 retiredNodeReferenceClass Ljava/lang/Class<*>;
27 32 15 retiredNodeWeakReferenceField Ljava/lang/reflect/Field;
29 32 16 retiredNodeWeakReference Ljava/lang/Object;
36 37 8 retiredStatementNodeWeakReference Ljava/lang/ref/WeakReference<Lcom/oracle/truffle/api/nodes/Node;>;
42 43 8 enteredNode Lcom/oracle/truffle/api/nodes/Node;
Exceptions:
throws java.lang.InterruptedException, java.lang.NoSuchFieldException, java.lang.IllegalAccessException
RuntimeVisibleAnnotations:
org.junit.Test()
private void lambda$0(com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener, org.graalvm.polyglot.Source);
descriptor: (Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest$RecordingExecutionEventListener;Lorg/graalvm/polyglot/Source;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=3
start local 0 0: aload 1
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.start:()V
1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest.context:Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 3
4: aload 1
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.end:()V
5: aload 3
athrow
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener.end:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest;
Exception table:
from to target type
1 3 3 any
private static boolean lambda$1(com.oracle.truffle.api.nodes.Node);
descriptor: (Lcom/oracle/truffle/api/nodes/Node;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage$MaterializedChildStatementNode
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 node Lcom/oracle/truffle/api/nodes/Node;
}
SourceFile: "GradualInstrumentationTest.java"
NestMembers:
com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener
InnerClasses:
public abstract WrapperNode = com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode of com.oracle.truffle.api.instrumentation.InstrumentableNode
public final Builder = com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder of com.oracle.truffle.api.instrumentation.SourceSectionFilter
public final ExpressionTag = com.oracle.truffle.api.instrumentation.StandardTags$ExpressionTag of com.oracle.truffle.api.instrumentation.StandardTags
public final StatementTag = com.oracle.truffle.api.instrumentation.StandardTags$StatementTag of com.oracle.truffle.api.instrumentation.StandardTags
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
public RecordingExecutionEventListener = com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest$RecordingExecutionEventListener of com.oracle.truffle.api.instrumentation.test.GradualInstrumentationTest
BlockTag = com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage$BlockTag of com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage
ConstantTag = com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage$ConstantTag of com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage
LoopTag = com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage$LoopTag of com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage
MaterializedChildStatementNode = com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage$MaterializedChildStatementNode of com.oracle.truffle.api.instrumentation.test.InstrumentationTestLanguage
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles