United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7155300 Include pthread.h on all POSIX platforms except Solaris to improve portability
JDK-7155300 : Include pthread.h on all POSIX platforms except Solaris to improve portability

Details
Type:
Enhancement
Submit Date:
2012-03-20
Status:
Closed
Updated Date:
2012-12-18
Project Name:
JDK
Resolved Date:
2012-04-21
Component:
tools
OS:
generic
Sub-Component:
launcher
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
A DESCRIPTION OF THE REQUEST :
pthread is used in jdk/src/solaris/bin/java_md.c and jdk/src/solaris/transport/socket/socket_md.c on all POSIX platforms exception Solaris. We can modify the current code to "#ifdef __Solaris__ ... #else ... #end" to make it portable to other platforms.

JUSTIFICATION :
It can be easily ported to BSD/MAC/AIX.

                                    

Comments
EVALUATION

Sounds good for the launcher, but there should be another bug for
the networking team for socket_md.c
                                     
2012-03-20
EVALUATION

http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1d418ec212ea

Launcher and socket_md.c changes
                                     
2012-03-22



Hardware and Software, Engineered to Work Together