Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8253001

[JVMCI] Add API for getting stacktraces independently of current thread

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gdub Gilles Duboscq
                Reporter:
                gdub Gilles Duboscq
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: