> The following APIs are useful when debugging the debug agent. Calls to them > can be added to the code as needed (temporarily) to aid in debugging issues. > They were taken from `test/lib/jdk/test/lib/jvmti/jvmti_common.hpp` and > modified to better fit the needs and coding style of the debug agent. > > char* translateThreadState(jint flags); > char* getThreadName(jthread thread); > char* getMethodName(jmethodID method); > void printStackTrace(jthread thread); > void printThreadInfo(jthread thread); > > I made use of them while working on a couple of recent bugs and found them > very useful. > > Tested by running all debugging tests on all supported platforms, and also > running tier2, tier3, and tier5 svc ci test tasks.
Chris Plummer has updated the pull request incrementally with one additional commit since the last revision: Fix indent ------------- Changes: - all: https://git.openjdk.org/jdk/pull/21299/files - new: https://git.openjdk.org/jdk/pull/21299/files/cbc7cb4f..d9b498bf Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=21299&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21299&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/21299.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21299/head:pull/21299 PR: https://git.openjdk.org/jdk/pull/21299