pthread_setname_np (replacement) on AIX ?

Thomas Stüfe thomas.stuefe at gmail.com
Thu Oct 10 09:34:08 UTC 2019


Hi Matthias,

I dont think it exists on AIX:

We use it to set the thread name for debugging support (see
 os::set_native_thread_name). I personally think it is terribly important,
since debugging on AIX in dbx is something we try to avoid :)

Do you plan to commonize the implementation of os::set_native_thread_name
for all Posix platforms? If yes, this makes sense, but I would dlsym the
function.

Cheers, Thomas





On Thu, Oct 10, 2019 at 9:37 AM Baesken, Matthias <matthias.baesken at sap.com>
wrote:

> Hello,  currently  pthread_setname_np   is used on e.g.  Linux and BSD
>
>
>
>
> https://hg.openjdk.java.net/jdk/jdk/file/ccb7bf459cbd/src/hotspot/os/linux/os_linux.cpp#l5101
>
>
>
>
> https://hg.openjdk.java.net/jdk/jdk/file/ccb7bf459cbd/src/hotspot/os/bsd/os_bsd.cpp#l3280
>
>
>
>
>
> for setting  unique names for a threads.
>
> See the Linux manpage :
>
>
>
> https://linux.die.net/man/3/pthread_setname_np
>
>
>
>
>
> I noticed  that   the function seems to  be available  now  on IBM i
>
>
>
>
> https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/pthread_setname_np.htm
>
>
>
> but I did not find it on AIX  -  are there plans to include it on AIX ? Or
> is it already available in some SP ?
>
> If not is there a replacmenet function for it  we could use ?
>
>
>
>
>
> Thanks, Matthias
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20191010/fcf6b5d5/attachment.html>


More information about the ppc-aix-port-dev mailing list