public class StackFrameStream
extends java.lang.Object
StackFrameStream iterates through the frames of a thread starting from top most frame. It automatically takes care of updating the location of all (callee-saved) registers. Notice: If a thread is stopped at a safepoint, all registers are saved, not only the callee-saved ones.
Use:
for(StackFrameStream fst = new StackFrameStream(thread); !fst.isDone(); fst.next()) { ... }
Constructor and Description |
---|
StackFrameStream(JavaThread thread)
Equivalent to StackFrameStream(thread, true)
|
StackFrameStream(JavaThread thread,
boolean update) |
Modifier and Type | Method and Description |
---|---|
Frame |
getCurrent()
Query
|
RegisterMap |
getRegisterMap() |
boolean |
isDone()
Iteration
|
void |
next() |
public StackFrameStream(JavaThread thread)
public StackFrameStream(JavaThread thread, boolean update)
public boolean isDone()
public void next()
public Frame getCurrent()
public RegisterMap getRegisterMap()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.