[PATCH] Linux implementation for set_native_thread_name()

Tom Tromey tromey at redhat.com
Sat Jul 28 14:38:09 PDT 2012

>>>>> "David" == David Holmes <david.holmes at oracle.com> writes:

>> I verified it using htop and by inspecting /proc/$PID/task/$TID/stat.
>> Unfortuntately, I couldn't get top or ps to show the thread name, but
>> maybe I'm just stupid (and I did not try very hard).

David> gdb?

It shows up in gdb if you run a recent-enough kernel.
"Recent-enough", meaning that /proc/PID/task/TID/comm exists.
IIRC the gdb support was added in 7.3
You can see the thread name in "info threads".


More information about the hotspot-dev mailing list