JDK-8060033 : Implement os::set_native_thread_name() on Windows and Linux
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2014-10-09
  • Updated: 2014-10-10
  • Resolved: 2014-10-10
Related Reports
Relates :  
Description
Until now, os::set_native_thread_name() has only been implemented on MacOS. 

However since glibc 2.12 it is possible to also implement this method with the help of pthread_setname_np() - see http://repo.or.cz/w/glibc.git/blob_plain/HEAD:/NEWS.

The functionality can also be implemented on Windows (at least partially) - see file:///tmp/webrev/src/os/windows/vm/os_windows.cpp.udiff.html

Comments
Close as duplicate of 7102541.
10-10-2014

Please close this as a dup of JDK-7102541 - we have covered this area in great detail in the past. Thanks.
09-10-2014

Here is a much older bug tracking this idea: JDK-7102541 RFE: os::set_native_thread_name() cleanups
09-10-2014