United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7116189 Export JVM_SetNativeThreadName from Hotspot
JDK-7116189 : Export JVM_SetNativeThreadName from Hotspot

Details
Type:
Bug
Submit Date:
2011-11-28
Status:
Closed
Updated Date:
2012-03-22
Project Name:
JDK
Resolved Date:
2012-01-20
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs23
Fixed Versions:
hs23 (b07)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
JVM_SetNativeThreadName was added by 7098194, but not exported from libjvm.so
on linux and solaris.

                                    

Comments
SUGGESTED FIX

From Mike McMahon (###@###.###):

diff -r 7e508fbcb950 -r 0192a1740fad make/linux/makefiles/mapfile-vers-debug
--- a/make/linux/makefiles/mapfile-vers-debug	Thu Oct 27 12:21:43 2011 -0700
+++ b/make/linux/makefiles/mapfile-vers-debug	Mon Nov 14 07:01:04 2011 -0800
@@ -221,6 +221,7 @@
                 JVM_SetArrayElement;
                 JVM_SetClassSigners;
                 JVM_SetLength;
+                JVM_SetNativeThreadName;
                 JVM_SetPrimitiveArrayElement;
                 JVM_SetProtectionDomain;
                 JVM_SetSockOpt;
diff -r 7e508fbcb950 -r 0192a1740fad make/linux/makefiles/mapfile-vers-product
--- a/make/linux/makefiles/mapfile-vers-product	Thu Oct 27 12:21:43 2011 -0700
+++ b/make/linux/makefiles/mapfile-vers-product	Mon Nov 14 07:01:04 2011 -0800
@@ -221,6 +221,7 @@
                 JVM_SetArrayElement;
                 JVM_SetClassSigners;
                 JVM_SetLength;
+                JVM_SetNativeThreadName;
                 JVM_SetPrimitiveArrayElement;
                 JVM_SetProtectionDomain;
                 JVM_SetSockOpt;
diff -r 7e508fbcb950 -r 0192a1740fad make/solaris/makefiles/mapfile-vers
--- a/make/solaris/makefiles/mapfile-vers	Thu Oct 27 12:21:43 2011 -0700
+++ b/make/solaris/makefiles/mapfile-vers	Mon Nov 14 07:01:04 2011 -0800
@@ -221,6 +221,7 @@
 		JVM_SetArrayElement;
 		JVM_SetClassSigners;
 		JVM_SetLength;
+                JVM_SetNativeThreadName;
 		JVM_SetPrimitiveArrayElement;
 		JVM_SetProtectionDomain;
 		JVM_SetSockOpt;
                                     
2011-11-28
EVALUATION

Ok.
                                     
2011-11-28
EVALUATION

Neither the Solaris nor Linux JDK implementation seems to support setting
native thread names (though there seems to be an entry point in the latest
Linux libpthread, pthread_setname_np(), that does so), but since OSX
does, the reference to JVM_SetNativeThreadName exists in JDK native
code, thus might be linked against, thus should be exported.
                                     
2011-11-29
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/242b4e0e6f73
                                     
2011-11-29
EVALUATION

http://hg.openjdk.java.net/jdk7u/jdk7u-osx/hotspot/rev/242b4e0e6f73
                                     
2011-12-07
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/242b4e0e6f73
                                     
2011-12-15
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/242b4e0e6f73
                                     
2012-03-22



Hardware and Software, Engineered to Work Together