Withdrawn: JDK-8253001: [JVMCI] Add API for getting stacktraces independently of current thread
Allan Gregersen
github.com+4676506+javeleon at openjdk.java.net
Tue Dec 15 13:57:59 UTC 2020
On Thu, 10 Sep 2020 11:52:34 GMT, Allan Gregersen <github.com+4676506+javeleon at openjdk.org> wrote:
> The idea is to add a more powerful API for cases where the current iterateFrames API cannot be used.
>
> For example, a debugger needs access to the content of stack frames such as local variables or monitors. In cases where threads execute in the runtime or in native code, it's not possible to obtain a thread suspension hook, for which iterateFrames can be used on the suspended thread. The getStackFrames method enables an immediate stack frames lookup regardless of the status of the underlying thread.
> Another use case would be for lookup of backtraces for non-current threads.
>
> The implementation is done by means of a VM operation that collects vframe data for each thread during a safepoint, whereafter required object reallocation/reassign fields is performed based on the collected snapshot.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/jdk/pull/110
More information about the hotspot-compiler-dev
mailing list