Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8314091

Set native thread name for Java main thread

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 22
    • hotspot
    • None

      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.

            Unassigned Unassigned
            yyang Yi Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: