[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-hotspot-runtime-dev
Subject:    Pls review 7116189 (XXS)
From:       david.holmes () oracle ! com (David Holmes)
Date:       2011-11-29 2:48:35
Message-ID: 4ED44803.1020702 () oracle ! com
[Download RAW message or body]

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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic