Skip to content

Commit 04891c9

Browse files
committedSep 20, 2021
8273912: Add threadControl_dumpThread(jthread) function
Reviewed-by: kevinw, sspitsyn
1 parent 5c21c00 commit 04891c9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎src/jdk.jdwp.agent/share/native/libjdwp/threadControl.c

+11
Original file line numberDiff line numberDiff line change
@@ -2586,6 +2586,17 @@ threadControl_dumpAllThreads()
25862586
dumpThreadList(&otherThreads);
25872587
}
25882588

2589+
void
2590+
threadControl_dumpThread(jthread thread)
2591+
{
2592+
ThreadNode* node = findThread(NULL, thread);
2593+
if (node == NULL) {
2594+
tty_message("Thread not found");
2595+
} else {
2596+
dumpThread(node);
2597+
}
2598+
}
2599+
25892600
static void
25902601
dumpThreadList(ThreadList *list)
25912602
{

‎src/jdk.jdwp.agent/share/native/libjdwp/threadControl.h

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jlong threadControl_getFrameGeneration(jthread thread);
7878

7979
#ifdef DEBUG
8080
void threadControl_dumpAllThreads();
81+
void threadControl_dumpThread(jthread thread);
8182
#endif
8283

8384
#endif

0 commit comments

Comments
 (0)