public interface InspectedFrame
Modifier and Type | Method and Description |
---|---|
int |
getBytecodeIndex() |
Object |
getLocal(int index)
Returns the value of the local at the given index.
|
ResolvedJavaMethod |
getMethod() |
boolean |
hasVirtualObjects()
Returns true if the stack frame is a compiled stack frame and there are virtual objects
anywhere in the current state of the compiled method.
|
boolean |
isMethod(ResolvedJavaMethod method)
Checks if the current method is equal to the given method.
|
boolean |
isVirtual(int index)
Returns whether the local at the given index is a virtual object, and therefore the object
returned by
getLocal(int) is a copy. |
void |
materializeVirtualObjects(boolean invalidateCode)
This method will materialize all virtual objects, deoptimize the stack frame and make sure
that subsequent execution of the deoptimized frame uses the materialized values.
|
Object getLocal(int index)
isVirtual(int)
is true.boolean isVirtual(int index)
getLocal(int)
is a copy.boolean hasVirtualObjects()
isVirtual(int)
return false for all locals.void materializeVirtualObjects(boolean invalidateCode)
int getBytecodeIndex()
ResolvedJavaMethod getMethod()
boolean isMethod(ResolvedJavaMethod method)
method.equals(getMethod())
, but can be implemented more efficiently.