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
-
- links to
-
Review openjdk/jdk/15224