8273912: Add threadControl_dumpThread(jthread) function
Reviewed-by: kevinw, sspitsyn
This commit is contained in:
parent
5c21c00441
commit
04891c95e0
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user