Pls review 7116189 (XXS)

David Holmes david.holmes at oracle.com
Mon Nov 28 18:48:35 PST 2011


On 29/11/2011 5:46 AM, Paul Hohensee wrote:
> 7116189: Export JVM_SetNativeThreadName from Hotspot.
>
> The initial Mac OSX port added a JVM entry point JVM_SetNativeThreadName
> for
> use by the JDK libraries, but failed to export it in libjvm.so on
> Solaris and Linux.
> Mike McMahon from the core libs team produced a fix, which is just to add
> JVM_SetNativeThreadName to the Solaris and Linux linker mapfiles.
>
> Webrev here:
>
> http://cr.openjdk.java.net/~phh/7116189.0

I has some discussions about this with Paul via email, not realizing the 
review request was out here.

To clarify, neither Solaris nor Linux support JVM_SetNativeThreadName - 
it is a no-op**. I assume this fix is needed to address build and/or 
link issues with JDK code that wants to call this method?

David
-----

** pthread_setname_np is a non-portable extension to pthreads. 
Apparently Linux supports it from glibc 2.12

http://stackoverflow.com/questions/2369738/can-i-set-the-name-of-a-thread-in-pthreads-linux

but I don't see it on our linux build machines and also not in Solaris.


More information about the hotspot-runtime-dev mailing list