Top Fields Constructors Methods
jdk.vm.ci.hotspot

public Class HotSpotStackIntrospection

extends Object
implements StackIntrospection
Class Inheritance
All Implemented Interfaces
jdk.vm.ci.code.stack.StackIntrospection
Imports
jdk.vm.ci.code.stack.InspectedFrameVisitor, .StackIntrospection, jdk.vm.ci.meta.ResolvedJavaMethod

Field Summary

Modifier and TypeField and Description
protected final HotSpotJVMCIRuntime

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public <T> T
iterateFrames(ResolvedJavaMethod[]
if this is non-null, then the stack walk will start at the first frame whose method is one of these methods.
initialMethods
,
ResolvedJavaMethod[]
if this is non-null, then only frames whose methods are in this array are visited
matchingMethods
,
int
the number of matching methods to skip (including the initial method)
initialSkip
,
InspectedFrameVisitor<T>
the visitor that is called for every matching method
visitor
)

Implements jdk.vm.ci.code.stack.StackIntrospection.iterateFrames.

Walks the current stack, providing InspectedFrames to the visitor that can be used to inspect the stack frame's contents.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

runtimeback to summary
protected final HotSpotJVMCIRuntime runtime

Constructor Detail

HotSpotStackIntrospectionback to summary
public HotSpotStackIntrospection(HotSpotJVMCIRuntime runtime)

Method Detail

canMaterializeVirtualObjectsback to summary
public boolean canMaterializeVirtualObjects()

Overrides default jdk.vm.ci.code.stack.StackIntrospection.canMaterializeVirtualObjects.

Doc from jdk.vm.ci.code.stack.StackIntrospection.canMaterializeVirtualObjects.

Determines if InspectedFrame#materializeVirtualObjects(boolean) can be called for frames visited by iterateFrames.

Annotations
@Override
iterateFramesback to summary
public <T> T iterateFrames(ResolvedJavaMethod[] initialMethods, ResolvedJavaMethod[] matchingMethods, int initialSkip, InspectedFrameVisitor<T> visitor)

Implements jdk.vm.ci.code.stack.StackIntrospection.iterateFrames.

Doc from jdk.vm.ci.code.stack.StackIntrospection.iterateFrames.

Walks the current stack, providing InspectedFrames to the visitor that can be used to inspect the stack frame's contents. Iteration continues as long as InspectedFrameVisitor#visitFrame, which is invoked for every InspectedFrame, returns null. A non-null return value from InspectedFrameVisitor#visitFrame indicates that frame iteration should stop.

Parameters
initialMethods:ResolvedJavaMethod[]

if this is non-null, then the stack walk will start at the first frame whose method is one of these methods.

matchingMethods:ResolvedJavaMethod[]

if this is non-null, then only frames whose methods are in this array are visited

initialSkip:int

the number of matching methods to skip (including the initial method)

visitor:InspectedFrameVisitor<T>

the visitor that is called for every matching method

Returns:T

the last result returned by the visitor (which is non-null to indicate that iteration should stop), or null if the whole stack was iterated.

Annotations
@Override