java.lang.Object
com.ibm.dtfj.java.j9.JavaStackFrame
- All Implemented Interfaces:
JavaStackFrame
-
Constructor Summary
ConstructorDescriptionJavaStackFrame
(JavaRuntime javaVM, ImagePointer basePointer, ImagePointer methodID, ImagePointer pc, int lineNumber) JavaStackFrame
(JavaRuntime javaVM, ImagePointer basePointer, JavaMethod method, ImagePointer pc, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createObjectRef
(long id) boolean
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.Get a pointer to the base of this stack frameGet the set of object roots from this stack frame.Get the location at which the method owning this frame is currently executingint
hashCode()
Answers an integer hash code for the receiver.
-
Constructor Details
-
JavaStackFrame
public JavaStackFrame(JavaRuntime javaVM, ImagePointer basePointer, JavaMethod method, ImagePointer pc, int lineNumber) -
JavaStackFrame
public JavaStackFrame(JavaRuntime javaVM, ImagePointer basePointer, ImagePointer methodID, ImagePointer pc, int lineNumber)
-
-
Method Details
-
getBasePointer
Description copied from interface:JavaStackFrame
Get a pointer to the base of this stack frame- Specified by:
getBasePointer
in interfaceJavaStackFrame
- Returns:
- the base pointer of the stack frame
- Throws:
CorruptDataException
-
getLocation
Description copied from interface:JavaStackFrame
Get the location at which the method owning this frame is currently executing- Specified by:
getLocation
in interfaceJavaStackFrame
- Returns:
- a location object describing where the frame is executing
- Throws:
CorruptDataException
- See Also:
-
createObjectRef
public void createObjectRef(long id) -
equals
Description copied from class:java.lang.Object
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).- Specified by:
equals
in interfaceJavaStackFrame
- Overrides:
equals
in classObject
- Parameters:
obj
- Object the object to compare with this object.- Returns:
- boolean
true
if the object is the same as this objectfalse
if it is different from this object. - See Also:
-
hashCode
public int hashCode()Description copied from class:java.lang.Object
Answers an integer hash code for the receiver. Any two objects which answertrue
when passed to.equals
must answer the same value for this method.- Specified by:
hashCode
in interfaceJavaStackFrame
- Overrides:
hashCode
in classObject
- Returns:
- the receiver's hash.
- See Also:
-
getHeapRoots
Description copied from interface:JavaStackFrame
Get the set of object roots from this stack frame.- Specified by:
getHeapRoots
in interfaceJavaStackFrame
- Returns:
- an iterator of JavaReferences
-