public final class HardwareTrapGCMapIterator extends GCMapIterator
framePtr, registerLocations, thread| Constructor and Description |
|---|
HardwareTrapGCMapIterator(AddressArray registerLocations) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupPointers()
Iteration is complete, release any internal data structures including
locks acquired during setupIterator for jsr maps.
|
Address |
getNextReferenceAddress()
Get address of next object reference held by current stackframe.
|
Address |
getNextReturnAddressAddress()
Get address of next JSR return address held by current stackframe.
|
int |
getType()
Get the type of this iterator (BASELINE, OPT, etc.).
|
void |
reset()
Prepare to re-iterate on same stackframe, and to switch between
"reference" iteration and "JSR return address" iteration.
|
void |
setupIterator(CompiledMethod compiledMethod,
Offset instructionOffset,
Address framePtr)
Prepare to iterate over object references and JSR return addresses held by a stackframe.
|
newStackWalkpublic HardwareTrapGCMapIterator(AddressArray registerLocations)
public void setupIterator(CompiledMethod compiledMethod, Offset instructionOffset, Address framePtr)
GCMapIteratorsetupIterator in class GCMapIteratorcompiledMethod - method running in the stackframeinstructionOffset - offset of current instruction within that method's codeframePtr - address of stackframe to be visitedpublic Address getNextReferenceAddress()
GCMapIteratorSide effect: registerLocations[] updated at end of iteration. TODO: registerLocations[] update should be done via separately called method instead of as side effect.
getNextReferenceAddress in class GCMapIteratorpublic Address getNextReturnAddressAddress()
GCMapIteratorgetNextReturnAddressAddress in class GCMapIteratorpublic void reset()
GCMapIteratorreset in class GCMapIteratorpublic void cleanupPointers()
GCMapIteratorcleanupPointers in class GCMapIteratorpublic int getType()
GCMapIteratorgetType in class GCMapIterator