final class com.oracle.truffle.tools.profiler.ShadowStack
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.tools.profiler.ShadowStack
super_class: java.lang.Object
{
private final java.util.concurrent.ConcurrentHashMap<java.lang.Thread, com.oracle.truffle.tools.profiler.ShadowStack$ThreadLocalStack> stacks;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/lang/Thread;Lcom/oracle/truffle/tools/profiler/ShadowStack$ThreadLocalStack;>;
private final int stackLimit;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.instrumentation.SourceSectionFilter sourceSectionFilter;
descriptor: Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.instrumentation.Instrumenter initInstrumenter;
descriptor: Lcom/oracle/truffle/api/instrumentation/Instrumenter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.TruffleLogger logger;
descriptor: Lcom/oracle/truffle/api/TruffleLogger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(int, com.oracle.truffle.api.instrumentation.SourceSectionFilter, com.oracle.truffle.api.instrumentation.Instrumenter, com.oracle.truffle.api.TruffleLogger);
descriptor: (ILcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/Instrumenter;Lcom/oracle/truffle/api/TruffleLogger;)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield com.oracle.truffle.tools.profiler.ShadowStack.stacks:Ljava/util/concurrent/ConcurrentHashMap;
2: aload 0
iload 1
putfield com.oracle.truffle.tools.profiler.ShadowStack.stackLimit:I
3: aload 0
aload 2
putfield com.oracle.truffle.tools.profiler.ShadowStack.sourceSectionFilter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
4: aload 0
aload 3
putfield com.oracle.truffle.tools.profiler.ShadowStack.initInstrumenter:Lcom/oracle/truffle/api/instrumentation/Instrumenter;
5: aload 0
aload 4
putfield com.oracle.truffle.tools.profiler.ShadowStack.logger:Lcom/oracle/truffle/api/TruffleLogger;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/tools/profiler/ShadowStack;
0 7 1 stackLimit I
0 7 2 sourceSectionFilter Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
0 7 3 instrumenter Lcom/oracle/truffle/api/instrumentation/Instrumenter;
0 7 4 logger Lcom/oracle/truffle/api/TruffleLogger;
MethodParameters:
Name Flags
stackLimit
sourceSectionFilter
instrumenter
logger
com.oracle.truffle.tools.profiler.ShadowStack$ThreadLocalStack getStack(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)Lcom/oracle/truffle/tools/profiler/ShadowStack$ThreadLocalStack;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.tools.profiler.ShadowStack.stacks:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.oracle.truffle.tools.profiler.ShadowStack$ThreadLocalStack
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/tools/profiler/ShadowStack;
0 1 1 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
thread
java.util.Collection<com.oracle.truffle.tools.profiler.ShadowStack$ThreadLocalStack> getStacks();
descriptor: ()Ljava/util/Collection;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.tools.profiler.ShadowStack.stacks:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.values:()Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/tools/profiler/ShadowStack;
Signature: ()Ljava/util/Collection<Lcom/oracle/truffle/tools/profiler/ShadowStack$ThreadLocalStack;>;
com.oracle.truffle.api.instrumentation.EventBinding<?> install(com.oracle.truffle.api.instrumentation.Instrumenter, com.oracle.truffle.api.instrumentation.SourceSectionFilter, boolean);
descriptor: (Lcom/oracle/truffle/api/instrumentation/Instrumenter;Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding;
flags: (0x0000)
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
new com.oracle.truffle.tools.profiler.ShadowStack$1
dup
aload 0
aload 1
iload 3
invokespecial com.oracle.truffle.tools.profiler.ShadowStack$1.<init>:(Lcom/oracle/truffle/tools/profiler/ShadowStack;Lcom/oracle/truffle/api/instrumentation/Instrumenter;Z)V
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;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/tools/profiler/ShadowStack;
0 1 1 instrumenter Lcom/oracle/truffle/api/instrumentation/Instrumenter;
0 1 2 filter Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
0 1 3 compiledOnly Z
Signature: (Lcom/oracle/truffle/api/instrumentation/Instrumenter;Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding<*>;
MethodParameters:
Name Flags
instrumenter
filter
compiledOnly
java.util.ArrayList<com.oracle.truffle.tools.profiler.StackTraceEntry> getInitialStack(com.oracle.truffle.api.nodes.Node);
descriptor: (Lcom/oracle/truffle/api/nodes/Node;)Ljava/util/ArrayList;
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 2
aload 1
aload 0
getfield com.oracle.truffle.tools.profiler.ShadowStack.sourceSectionFilter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
aload 0
getfield com.oracle.truffle.tools.profiler.ShadowStack.initInstrumenter:Lcom/oracle/truffle/api/instrumentation/Instrumenter;
invokestatic com.oracle.truffle.tools.profiler.ShadowStack.reconstructStack:(Ljava/util/ArrayList;Lcom/oracle/truffle/api/nodes/Node;Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/Instrumenter;)V
2: invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
aload 0
aload 2
invokedynamic visitFrame(Lcom/oracle/truffle/tools/profiler/ShadowStack;Ljava/util/ArrayList;)Lcom/oracle/truffle/api/frame/FrameInstanceVisitor;
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/frame/FrameInstance;)Ljava/lang/Object;
com/oracle/truffle/tools/profiler/ShadowStack.lambda$0(Ljava/util/ArrayList;Lcom/oracle/truffle/api/frame/FrameInstance;)Ljava/lang/Object; (7)
(Lcom/oracle/truffle/api/frame/FrameInstance;)Ljava/lang/Object;
invokeinterface com.oracle.truffle.api.TruffleRuntime.iterateFrames:(Lcom/oracle/truffle/api/frame/FrameInstanceVisitor;)Ljava/lang/Object;
pop
3: aload 2
invokestatic java.util.Collections.reverse:(Ljava/util/List;)V
4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/tools/profiler/ShadowStack;
0 5 1 instrumentedNode Lcom/oracle/truffle/api/nodes/Node;
1 5 2 sourceLocations Ljava/util/ArrayList<Lcom/oracle/truffle/tools/profiler/StackTraceEntry;>;
Signature: (Lcom/oracle/truffle/api/nodes/Node;)Ljava/util/ArrayList<Lcom/oracle/truffle/tools/profiler/StackTraceEntry;>;
MethodParameters:
Name Flags
instrumentedNode
private static void reconstructStack(java.util.ArrayList<com.oracle.truffle.tools.profiler.StackTraceEntry>, com.oracle.truffle.api.nodes.Node, com.oracle.truffle.api.instrumentation.SourceSectionFilter, com.oracle.truffle.api.instrumentation.Instrumenter);
descriptor: (Ljava/util/ArrayList;Lcom/oracle/truffle/api/nodes/Node;Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/Instrumenter;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnull 1
aload 2
ifnonnull 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.oracle.truffle.api.nodes.Node.getParent:()Lcom/oracle/truffle/api/nodes/Node;
astore 4
start local 4 3: goto 7
4: StackMap locals: com.oracle.truffle.api.nodes.Node
StackMap stack:
aload 2
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.SourceSectionFilter.includes:(Lcom/oracle/truffle/api/nodes/Node;)Z
ifeq 6
aload 4
invokevirtual com.oracle.truffle.api.nodes.Node.getSourceSection:()Lcom/oracle/truffle/api/source/SourceSection;
ifnull 6
5: aload 0
new com.oracle.truffle.tools.profiler.StackTraceEntry
dup
aload 3
aload 4
iconst_1
invokespecial com.oracle.truffle.tools.profiler.StackTraceEntry.<init>:(Lcom/oracle/truffle/api/instrumentation/Instrumenter;Lcom/oracle/truffle/api/nodes/Node;B)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
6: StackMap locals:
StackMap stack:
aload 4
invokevirtual com.oracle.truffle.api.nodes.Node.getParent:()Lcom/oracle/truffle/api/nodes/Node;
astore 4
7: StackMap locals:
StackMap stack:
aload 4
ifnonnull 4
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 sourceLocations Ljava/util/ArrayList<Lcom/oracle/truffle/tools/profiler/StackTraceEntry;>;
0 9 1 node Lcom/oracle/truffle/api/nodes/Node;
0 9 2 sourceSectionFilter Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
0 9 3 instrumenter Lcom/oracle/truffle/api/instrumentation/Instrumenter;
3 9 4 current Lcom/oracle/truffle/api/nodes/Node;
Signature: (Ljava/util/ArrayList<Lcom/oracle/truffle/tools/profiler/StackTraceEntry;>;Lcom/oracle/truffle/api/nodes/Node;Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/Instrumenter;)V
MethodParameters:
Name Flags
sourceLocations
node
sourceSectionFilter
instrumenter
private java.lang.Object lambda$0(java.util.ArrayList, com.oracle.truffle.api.frame.FrameInstance);
descriptor: (Ljava/util/ArrayList;Lcom/oracle/truffle/api/frame/FrameInstance;)Ljava/lang/Object;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 2 0: aload 2
invokeinterface com.oracle.truffle.api.frame.FrameInstance.getCallNode:()Lcom/oracle/truffle/api/nodes/Node;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 1
aload 3
aload 0
getfield com.oracle.truffle.tools.profiler.ShadowStack.sourceSectionFilter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
aload 0
getfield com.oracle.truffle.tools.profiler.ShadowStack.initInstrumenter:Lcom/oracle/truffle/api/instrumentation/Instrumenter;
invokestatic com.oracle.truffle.tools.profiler.ShadowStack.reconstructStack:(Ljava/util/ArrayList;Lcom/oracle/truffle/api/nodes/Node;Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/Instrumenter;)V
3: StackMap locals: com.oracle.truffle.api.nodes.Node
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/tools/profiler/ShadowStack;
0 4 2 frame Lcom/oracle/truffle/api/frame/FrameInstance;
1 4 3 node Lcom/oracle/truffle/api/nodes/Node;
}
SourceFile: "ShadowStack.java"
NestMembers:
com.oracle.truffle.tools.profiler.ShadowStack$1 com.oracle.truffle.tools.profiler.ShadowStack$StackPushPopNode com.oracle.truffle.tools.profiler.ShadowStack$ThreadLocalStack
InnerClasses:
com.oracle.truffle.tools.profiler.ShadowStack$1
private StackPushPopNode = com.oracle.truffle.tools.profiler.ShadowStack$StackPushPopNode of com.oracle.truffle.tools.profiler.ShadowStack
final ThreadLocalStack = com.oracle.truffle.tools.profiler.ShadowStack$ThreadLocalStack of com.oracle.truffle.tools.profiler.ShadowStack
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles