cat /proc/<java_process>/task/<main thread>/comm shows "java"
User wants it to be "main", just like any other JVM threads, which can be achieved by explicitly calling pthread_setname_np when spawning main thread at VM startup.
User wants it to be "main", just like any other JVM threads, which can be achieved by explicitly calling pthread_setname_np when spawning main thread at VM startup.
- relates to
-
JDK-8152690 main thread does not have native thread name
-
- Closed
-
-
JDK-8368621 In ASAN builds, attached non-main threads should have meaningful native names
-
- New
-
- links to
-
Review openjdk/jdk/15224