8273912: Add threadControl_dumpThread(jthread) function

Reviewed-by: kevinw, sspitsyn
This commit is contained in:
Chris Plummer 2021-09-20 20:10:10 +00:00
parent 5c21c00441
commit 04891c95e0
2 changed files with 12 additions and 0 deletions
src/jdk.jdwp.agent/share/native/libjdwp

@ -2586,6 +2586,17 @@ threadControl_dumpAllThreads()
dumpThreadList(&otherThreads);
}
void
threadControl_dumpThread(jthread thread)
{
ThreadNode* node = findThread(NULL, thread);
if (node == NULL) {
tty_message("Thread not found");
} else {
dumpThread(node);
}
}
static void
dumpThreadList(ThreadList *list)
{

@ -78,6 +78,7 @@ jlong threadControl_getFrameGeneration(jthread thread);
#ifdef DEBUG
void threadControl_dumpAllThreads();
void threadControl_dumpThread(jthread thread);
#endif
#endif