Skip to content

Commit c715c43

Browse files
committed
GH-549 thread name of virtual threads
1 parent db7390e commit c715c43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntime.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@ protected static void writeThreadCreationEvent(Thread thread, int threadId) {
556556

557557
try {
558558
threadName = thread.getName();
559+
if (threadName.length() == 0) {
560+
threadName = thread.toString();
561+
}
559562
} catch (NullPointerException e) {
560563
threadName = "*Unknown thread ("+threadId+")*"; // NOI18N
561564
}

0 commit comments

Comments
 (0)